java - In what context are angle brackets escaped with backslashes? -
A bit of abnormal question - angle brackets in angle context are escaped from backslashes?
I am sending a XML document (string XSD type) through the web service, which saves it in the database, but I see that all the XML Angle brackets escaped backslash So, I'm thinking that in fact (Java XML) document builder and transformer, using the web
example:
desired XML:
< Code> & lt ;? XML version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Ultimate & gt; & Lt; Ultimate name = "qqq" & gt; 1 & lt; / Param & gt; & Lt; / Ultimate & gt;
Actual results:
\ & lt ;? Xml version center code = "1.0" encoding = "UTF-8"? \ & Gt; \ & Lt; Ultimate & gt; \ & Lt; Param name = "qqq" \ gt; 1 \ & lt; / Param \ & gt; \ & Lt; / Absolute \ & gt;
Left angle bracket characters are not saved in valid HTML or XML like this In the formats '& lt;'
characters in "& amp; lt;"
In particular, I do not expect XML Builder / Serializer or a webservices stack to do this in accordance with standard standards.
They are not escaping in that way if you were crazy enough to embed XML in a URL, then you would use the "% xx"
encoding.
I do not know why a DBMS needs a character to do this
The only normal situation I can think of is that you do not have to type it on '\'
Where to use a to avoid
in some Wiki markup languages
IMO, most likely it is some application-specific concern with the web service you are using.
Comments
Post a Comment