Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / XML / July 2008

Tip: Looking for answers? Try searching our database.

Quick DTD syntax question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
B. Chernick - 08 Jul 2008 16:29 GMT
I have a dtd with the declaration:
<!ELEMENT BDD (BSR, (AccountX | Agreement | Delivery | DET | Invoice | Part
| Party | PartPres | PriceList)*)>

Do I understand this correctly?  Given that asterix at the end of the 'OR'
list, this means that a properly formed XML must have:
1) A BDD element
2) Within the BDD, a BSR element
3) And finally, (also within the BDD) any number of instances of one or more
elements from the 'OR' list, or none at all?

(And if there were no asterix at the end of that 'OR' list, there would have
to be one and only one copy of only one of those elements?)
Martin Honnen - 08 Jul 2008 17:14 GMT
> I have a dtd with the declaration:
> <!ELEMENT BDD (BSR, (AccountX | Agreement | Delivery | DET | Invoice | Part
[quoted text clipped - 9 lines]
> (And if there were no asterix at the end of that 'OR' list, there would have
> to be one and only one copy of only one of those elements?)

I think you have that correctly, see
http://www.w3.org/TR/xml/#sec-element-content for the formal definition.

Signature

    Martin Honnen --- MVP XML
    http://JavaScript.FAQTs.com/


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.