Closed bolte-io closed 2 years ago
Closing, a bit of rubber duck debugging helped me to solve my issue.
For posterity, the pedantically correct way to do this is with a <![CDATA[
block. Something like:
<script>
<data file="filename">
<source><![CDATA[
anything at all
even containing <xml> stuff </xml>
]]></source>
</data>
</script>
Hey guys, unsure if this is part of the problem but might be. I am using module xml-js which I believe uses SAX as the parser dependency, all the other parsers that use sax have this same issue so my belief is that the issue is with SAX
I am I guess a unique use case here. Here is what I am trying to do.
Currently, the parsed XML cannot be converted back to a string that matches the original. What seems to happen is the XML is extracted from inside the sample file below, this is unintended in my use case. Here is a sample of the file I am parsing:
When parsing, it also parses the XML contained within GENERATEXMLRES("") I would like it to avoid doing this.
Where/how in the code would it be possible to achieve this? Would it be adding ; as a comment declaration somewhere? I would really love if someone could help me here if you have the time.
Thanks!