ArticleDirectory
CDATA considerations:
Parse data
The XML Parser usually processes all text in the XML document.
When an XML element is parsed, the text inside the XML element is also parsed:
Code highlighting produced by
All text in an XML document would be parsed by the parser.All text in an XML document will be parsed by the parser.
Only text inside a CDATA section would be ignored by the parser.Only the CDATA part of the text is ignored by the parser
Parsed
parsing Data
XML parsers typically process all the text in an XML document.
When an XML element is parsed, the text inside the XML element is also parsed:
this text is also parsed
The reason the XML parser does this is that the XML element may also
When working with XML data, special characters are handled specially and cannot be confused with node characters.All text in the XML document is parsed by the parser.Only the text in CDATA sections (CDATA section) is ignored by the
At the time of the blog backup, all articles were exported, the export is an XML document, the article content is in the CDATA section.The following XML is described in CDATA:All text in the XML document is parsed by the parser. only the text in
CDATA Everything inside is ignored by the parser, and the added text contains a large number of CDATA sections begin with " ":Why use this?XHTML the second change is to use CDATA segments, which areused to declare text that should not be parsed as
xhtml| Standard
Recently, with the advent of XHTML (extensible HTML) standards,,
Even though many browsers do not fully support XHTML, most developers now use the type feature instead of language features to provide better XHTML support. Omitting
xhtml| Standard
Recently, with the advent of XHTML (extensible HTML) standards,,
Even though many browsers do not fully support XHTML, most developers now use the type feature instead of language features to provide better XHTML support. Omitting
The term CDATA refers to textual data (unparsed Character data) that should not be parsed by the XML parser.In XML elements, """&" also generates an error because the parser interprets the character as the beginning of the character entity.Some text,
The contents of the
Using a CDATA section is not valid for all browsers. For example, Internet Explorer treats a CDATA section in
JavaScript uses/* and */to flag the start and end of annotations. Therefore, the CDATA section hides from
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.