Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A basic question

 
Prakash Dwivedi
Ranch Hand
Posts: 452
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am still at learning stage
Is it possible in xml
<tag-one>
<tag-two>
</tag-two>
</tag-one>
<tag-two>
<tag-one>
</tag-one>
</tag-two>

that is a tag A contains tag B whreas tag B may further contain tag A in a same document
 
Bhushan Jawle
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming there is a root element which encloses these elements and this is valid specification according to dtd (if being validated against dtd) it is possible.
Bhushan
 
Ritu Kama
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you give a better example. Or if you have a sample of what kind of XML you are trying to produce.
 
Ron Newman
Ranch Hand
Posts: 1056
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'd probably do well to write a DTD first, to understand what kind of data you are trying to represent.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic