XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
XML Quiz

After XML parsing is complete, every occurrence of & will have been replaced by &

 

  1. True
  2. False

 

Scroll down to see the answer ……………

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

False! If the & is within a CDATA section or within a comment, then it will be unchanged. Otherwise, it will be changed.

 

Lesson Learned: An XML lexer/parser must perform conditional processing:

 

IF (& is within a CDATA section or comment) THEN

    OUTPUT(“&”)

ELSE

    OUTPUT(“&”)



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS