[Home] [By Thread] [By Date] [Recent Entries]

  • To: xml dev <xml-dev@l...>
  • Subject: What kind of content is allowed in simple types & simple content?
  • From: Soren Kuula <dongfang@d...>
  • Date: Sat, 10 Dec 2005 22:03:55 +0000
  • User-agent: Mozilla Thunderbird (X11/20050322)

Hi,

If an XML element is declared as simpleType of with simpleContent in XML 
Schema, is it then valid even with nested comments and processing 
instrtuctions?

Like:

<element name="foo">
<simpleType>
<restriction base="string">
<enumeration value="Du bist Schuld, nicht die Kanone!"/>
</restriction>
</simpleType>
</element>

<foo>Du bist Schuld<!--stupid comment-->, nicht<?foo bar?> die Kanone!</foo>

Soren

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member