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

  • To: "Michael Kay" <mike@s...>,"'Michael Rys'" <mrys@m...>,"'Soren Kuula'" <dongfang@d...>,"'xml dev'" <xml-dev@l...>
  • Subject: Re: What kind of content is allowed in simple types & simple content?
  • From: "Pete Cordell" <petexmldev@t...>
  • Date: Sun, 11 Dec 2005 17:09:33 -0000
  • References: <E1ElTR7-0003Ym-00@p...>

Original Message From: "Michael Kay" <mike@s...>
>> XSD does not constrain comments or PIs. So it is valid to
>> have them even
>> in simpleType content. However, it is not considered a good
>> practice...
>
> ... by vendors of database products (and data binding products) that have
> difficulty in coping with them.
>
> Stick to native XML technologies, and you should be fine.


I think whether you consider data binding (and possibly database products) 
to have difficulty coping with comments and PIs embedded in values depends 
on whether you want your application to see the comments and PIs or not (as 
opposed to whether the XML specs want to enable your application to see 
them).  If you don't, there shouldn't be a problem.

Pete.
--
=============================================
Pete Cordell
for XML to C++ data binding visit
http://www.tech-know-ware.com/lmx
(or http://www.xml2cpp.com)
=============================================



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