Since < & > as part of XML syntax. How to add these symbols as part of the data like
<Note>Have to have <> symbols</Note>
I have heard there are different types of data in which XML can be sent like CDATA etc, since character data parses each character it doesn’t allow these symbols.
I do know about < and > but that isn’t helpful.
Are there are any modes of data in which XML can be sent to avoid any tool recognizing the symbols?
There are two ways to represent characters which have special meaning in XML (such as
<and>) in an XML document.A CDATA section can only be used in places where you could have a text node.
The caveat is that you can’t include the sequence
]]>as data in a CDATA section.Entities can be used everywhere (except inside CDATA sections) and consist of
&, then an identifier, then;.It is how XML works. It is one of your only two options. It should not be a problem (if it is, then you need to explain why in your question).