XmlToJson icon indicating copy to clipboard operation
XmlToJson copied to clipboard

To check: when a tag contains "<" or ">"

Open smart-fun opened this issue 4 years ago • 1 comments

Received from LinkedIn:

[...] when one of the tag's content contains "<", ">" symbols, it will cut the text off. Like <Abstract> mast cell (p < 0.001) infiltration</Abstract>. The output will be {"Abstract" : "infiltration" }

smart-fun avatar Jan 18 '21 22:01 smart-fun

The "<" character is not valid in a xml file and must be escaped.

See: https://stackoverflow.com/questions/1091945/what-characters-do-i-need-to-escape-in-xml-documents

smart-fun avatar Feb 26 '21 20:02 smart-fun