The 1.0.2 has 0x0a references which cause the parser to throw away some of the text. These references have been replaced with a newline to get around the problem
<char code='0a'/><char code='0a'/> in the 1.0.2 import files is causing the parser to strip out text. Put in a replacement string to code around the problem
Moved check for define later to earlier in the call - it was setting "content in use" before checking define later and this would end up with content in use and define later = true