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]
Why is the > symbol a reserved character?

Hi Folks,

1. I understand why the < symbol in this element's data could confuse an XML Parser --

     <equation>if A < B then</equation>

-- and therefore it must be escaped:

     <equation>if A &lt; B then</equation>


2. I understand why the & symbol in this element's data could confuse an XML Parser --

     <Publisher>Harper & Row</Publisher>

-- and therefore it must be escaped:

     <Publisher>Harper &amp; Row</Publisher>


3. I understand why the ' symbol in this attribute's data could confuse an XML Parser --

     <House color='It's red!'>

-- and therefore it must be escaped:

     <House color='It&apos;s red!'>


4. I understand why the " symbol in this attribute's data could confuse an XML Parser --

     <House description="He said: "Wow!"">

-- and therefore it must be escaped:

     <House description="He said: &quot;Wow!&quot;">


5. I am unable to think of an example in which the > symbol could confuse an XML Parser. Would you provide an example please?

/Roger


[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