Data mapping in XML

I am writing an xml file. The file must contain &qinside it and &yand &id. The problem is that when I open the XML Viewer on Windows, it gives me the error that a semicolon is expected.

Is there any solution to this problem ??? Element:

<cs-uri-query> course=323-21-603&q=3&y=2002&id=671 </cs-uri-query>
+3
source share
3 answers

You must exit & in order to include it in XML using and . In addition, you can save it in the section CDATA. Examples:

<element>course=323-21-603&amp;q=3</element>

<element><![CDATA[course=323-21-603&q=3]]></element>
+2
source

"I am writing an xml file."

, . , , , XML. XML (.. DOM API), , API .

API-, , . , .

+5

Source: https://habr.com/ru/post/1727851/


All Articles