Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XML
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 11th, 2003, 12:09 PM
Registered User
Join Date: Sep 2003
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help with DTD


I am trying to write a DTD for an element with any children (as long as it is wellformed XML).
eg: <boolean>
where the DTD has no knowledge of either the key or value of somechild. <!ELEMENT boolean ANY> did not work (using Xerces parser for C++).

P Keshav
Reply With Quote
  #2 (permalink)  
Old September 12th, 2003, 12:05 AM
Friend of Wrox
Join Date: Jun 2003
Location: Nor Hachin, Kotayk, Armenia.
Posts: 147
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to armmarti


When you write <!ELEMENT boolean ANY> in the DTD, it means that the content of the element type "boolean" can be anything(well-balanced XML snippet). But it doesn't mean that you can ommit the declaration of some descendant element of "boolean". For example, suppose you have the DTD declaration:

<!ELEMENT boolean ANY>
and XML document like this:

Then you have to declare both "child1" and "child11" in the DTD. The only thing the "ANY" gives you is that the declared element is free to have any well-formed content, but it doesn't let you to miss element declarations of its descendant elements.

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Automated tool to convert XML from DTD to DTD lsantos2000 XSLT 2 October 17th, 2007 08:21 AM
Create DTD Lizane Java Basics 1 June 15th, 2007 06:51 AM
DTD question bcogney XML 1 April 8th, 2007 06:01 PM
Issue with DTD tgopal CSS Cascading Style Sheets 2 September 20th, 2006 04:15 AM
Which DTD? Snib HTML Code Clinic 2 July 16th, 2004 03:34 AM

All times are GMT -4. The time now is 03:19 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.