|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Recursivity
Most XML parsers should support your example as long as you code it in the following manner: <!ELEMENT TOTO ( #PCDATA | TOTO )* > e.g.: The PCDATA must come first and the asterisk is required. >From the spec: Examples of mixed content declarations: <!ELEMENT p (#PCDATA|a|ul|b|i|em)*> <!ELEMENT p (#PCDATA | %font; | %phrase; | %special; | %form;)* > <!ELEMENT b (#PCDATA)> Hope this helps. John Evdemon XML Solutions http://www.xmls.com -----Original Message----- From: owner-xml-dev@x... [mailto:owner-xml-dev@x...]On Behalf Of Jean Georges PERRIN Sent: Friday, February 18, 2000 4:33 AM To: xml-dev@x... Subject: Recursivity Is it possible to have recursivity in XML Documents / DTD... Some parsers seem to like it, others not... Something like : <TOTO><TOTO>hello</TOTO><TOTO>world</TOTO></TOTO> <!ELEMENT TOTO ( #PCDATA | TOTO ) > Any idea ? Specs? Jean Georges PERRIN -- Four J's Development Tools (www.4js.com) jgp@4... - Tel +33 (0)3 88 18 61 20 - Fax +33 (0)3 88 18 61 21 -- CAUTION: import com.fourjs.StandardDisclaimer; *************************************************************************** This is xml-dev, the mailing list for XML developers. To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev List archives are available at http://xml.org/archives/xml-dev/threads.html *************************************************************************** *************************************************************************** This is xml-dev, the mailing list for XML developers. To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev List archives are available at http://xml.org/archives/xml-dev/threads.html ***************************************************************************
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








