• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DTD

 
Harsha Jay
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Harsha
 
Marcelo Sousa Ancelmo
Ranch Hand
Posts: 498
Eclipse IDE Fedora Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that is letter D
 
Hari Vignesh Padmanaban
Ranch Hand
Posts: 578
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All the 4 look right to me
I am guessing that B is not a good way of doing it as it could be represented as
name, (shipping-address | billing-address)
instead of repeating name twice!!!
Harsha, what is the answer? :roll:
I am also not sure asto why D might be wrong ?
 
Marcelo Sousa Ancelmo
Ranch Hand
Posts: 498
Eclipse IDE Fedora Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lets Analyze:
The letter A is wright;
The letter B is right cause:
<!ELEMENT Customer ((Name, Ship-to-address) | (Name, Bill-to-address))>
is equal to:
<!ELEMENT Customer (Name, (Ship-to-address | Bill-to-address))>
which is very close to letter C.
The letter D is:
<!ELEMENT Customer (Name, (Ship-to-address, Bill-to-address)?)>
And it works, at least in XML Spy.
So I think that all of then are right.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic