Hey everyone
Let's say I have three boolean variables representing whether or not to ignore comments, mixed context and PIs in an XML document
How would I go about to output the same XML file but without those three sections , depending on if they're true or false?
Are there features on parsers that you can set to ignore PI or ignore mixed context and such?
For example, if you would have this XML:
<root><?pi something><!--comment--></root>
and PI is set to false while comments is set to true, then the output should be
<root><!--comment--></root>
I tried for 2 hours to figure out how to start that or what to do but I'm really lost. Any help would be appreciated, Thanks