B
bo gusman
I'm just learning XML and am struggling with an example of an ELEMENT
definition at http://www.xmlfiles.com/dtd/dtd_elements.asp.
Specifically, the following is shown
<!ELEMENT note (to+,from,header,message*,#PCDATA)>
I do not believe that this is valid (by reading the spec at w3c.org),
and if I create a DTD/XML instance that uses it, it neither validates
using xmllint nor the online validator at
http://www.stg.brown.edu/service/xmlvalid/ (which apparently uses Xmlparse).
Would someone confirm for me that this is an invalid example or explain
why not?
Thanks!
Bo
definition at http://www.xmlfiles.com/dtd/dtd_elements.asp.
Specifically, the following is shown
<!ELEMENT note (to+,from,header,message*,#PCDATA)>
I do not believe that this is valid (by reading the spec at w3c.org),
and if I create a DTD/XML instance that uses it, it neither validates
using xmllint nor the online validator at
http://www.stg.brown.edu/service/xmlvalid/ (which apparently uses Xmlparse).
Would someone confirm for me that this is an invalid example or explain
why not?
Thanks!
Bo