We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If you use the following input:
<root>\" <!--  --> <!--  --> 
 	 </root>
and run the following:
java -cp lib/saxon/saxon9.jar net.sf.saxon.Transform t.xml conf/xml-to-json.xsl
You'll get:
{ "root": [ "\\\"\n", { "": null }, { "": null } ] }
where as if you move the comments to after the character entities, you'll get:
"root": [ "\\\"\n\r\n\t\n", { "": null }, { "": null } ] }
With the CR and HT both properly in the output.
The text was updated successfully, but these errors were encountered:
It may be converted to this JSON
{ "root": { "#text": "\\\"\n", "#comment": "  ", "#comment1": "  " }, "#omit-xml-declaration": "yes" }
Sorry, something went wrong.
No branches or pull requests
If you use the following input:
and run the following:
You'll get:
where as if you move the comments to after the character entities, you'll get:
With the CR and HT both properly in the output.
The text was updated successfully, but these errors were encountered: