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
The CDATA segment # pcdata CDATA type in XML is similar in text because of the CDATA segment and # pcdata, CDATA. To make it easy for everyone to understand, let's take a look at it. 1. the CDATA segment in XML is similar to the heredoc concept in
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
A CDATA Converter was found on the Internet, and after the modification, the CDATA label was filtered out. As follows
Copy CodeThe code is as follows:
States:
//
' Out '
' // '
// '
// '
// '
// '
// '
' In '
// ']'
// ']]'
//
(Yes, the states a
Php adds the CDATA label when generating xml, and the phpxmlcdata label
This example describes how to add the CDATA tag when php generates xml. Share it with you for your reference. The specific implementation method is as follows:
In fact, the
Php adds the CDATA label when generating xml. How to add CDATA labels when php generates xml this article describes how to add CDATA labels when php generates xml. Share it with you for your reference. The specific implementation method is as
Standard Reference
According to the W3C html4.01 specification, the "name" attribute value must start with a letter ([A-Za-Z]), followed by any letter or number ([0-9])., hyphens ("-"), underscores ("_"), colons (":"), and periods ("..
For more
A CDATA Converter was found on the Internet, and after modification, the CDATA label was filtered out. As follows
Copy Code code as follows:
States:
//
' Out '
' ' ' ' ' ' ' ' In '
// ']'
// ']]'
//
(Yes, the states a
How to add CDATA tags when PHP generates XML
The example in this article describes how to add CDATA tags when PHP generates XML. Share to everyone for your reference. The implementation method is as follows:
In fact, it is very simple to add CDATA
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.