Open user1020 opened 5 years ago
In a way this is exactly what CDATA is meant for.
The XML I need to parse has "htmlHere" tag with what appears to be html tags (like
) just as part of xml. Looks different from CDATA to me:
<script>
<![CDATA[
<message> Welcome to TutorialsPoint </message>
]] >
</script >
What do you think?
Wonder if if there is an option when doing xml to json conversion, upon encountering a special tag, like
htmlHere
, it should stop parsing what's in the tag, treat the whole thing (with proper escaping) as a string?For example xml
should be parsed to
Thanks in advance.