Because the data is not in XML format, use NDATA to declare the specified data type. Avi is the MIME media type defined in NOTATION. Embedding non-analytic entities in XML is complex and non-standard. try not to use them. The ENTITY uses the ENTITY statement to define the ENTITY. For example, & lt ;! ENTITYlin uses NDATA to declare the specified data type because the data is not in XML format. Avi is the MIME media type defined in NOTATION. Embedding non-analytic entities in XML is complex and non-standard. try not to use them. Entity
Define an object with ENTITY declaration. For example:
Use & linux; to reference this string
You can define an external entity and reference an external XML document.
Use & linux; reference the/home/linux/test. xml document
External entities do not have an XML declaration, but can have a text Declaration. The two are similar. The main difference is that the text declaration must have an encoding declaration, while the version information is optional.
Is a legal text declaration
It is also a legal text declaration
Not all data is XML. Such as jpeg photos and mpeg movies. We recommend that you use external non-analytic entities as a mechanism to embed such content in the document. DTD specifies a name and URI for an object that contains non-XML data.
Because the data is not in XML format, use NDATA to declare the specified data type. Avi is the MIME media type defined in NOTATION. Embedding non-analytic entities in XML is complex and non-standard. try not to use them.
A parameter entity can define a set of common entities. in this document, the parameter entity can be used to reference objects. The parameter object definition is similar to the general object definition, but an extra % exists in the middle, and % code is also used for reference &.
Reference Method % person; this will replace the parameter entity % person with name, address, and postcode;
Generally, DTDs are relatively large. the DTD of DocBook is more than 11000 lines long. it is very difficult to manage and maintain it if it is stored in a single file. We can use an external DTD subset to divide a large DTD into different functional blocks and store them in different files. Then, use the external parameter entity declaration to introduce the current DTD, for example:
Define parameter entity reference external names. dtd Call the external DTD subset % names;
You can use the IGNORE keyword to annotate the declaration, for example:
]]>
Of course, use The same is true.
The INCLUDE keyword indicates that the specified declaration is used in the DTD, for example:
]]>
From this statement alone, we can see whether the INCLUDE function works the same. However, if you combine INCLUDE and IGNORE, you can select the DTD function. We can define a parameter entity:
Then, use the parameter object reference instead of the keyword:
]]>
According to the above operations, the element declaration is valid, but we can also redefine the parameter entity % note_allowed as IGNORE, so that the element declaration will be invalid.
The above is the detailed description of the XML Getting Started Tutorial-entity. For more information, see other related articles in the first PHP community!