[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XML quiz
Are entities recognized in comments? For example, in this XML document is a comment which contains an entity: <Document> <!-- & --> </Document> Will an XML parser replace the entity & with its replacement text &, to yield this: <Document> <!-- & --> </Document> Are entities recognized in processing instructions? For example, in this XML document is a processing instruction which contains an entity: <Document> <?foo & ?> </Document> Will an XML parser replace the entity & with its replacement text &, to yield this: <Document> <?foo & ?> </Document> Scroll down to see the answers ........ No. No. Entities are not recognized in comments nor processing instructions. Thus, after parsing the comment and processing instruction still have the unaltered entity: <Document> <!-- & --> </Document> <Document> <?foo & ?> </Document>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|