This week's book giveaway is in the Artificial Intelligence and Machine Learning forum.
We're giving away four copies of Transfer Learning for Natural Language Processing (MEAP) and have Paul Azunre on-line!
See this thread for details.
Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

A question about XML Syntax

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a well-formed XML document, can an element be it's own child?
Ex: Is the following xml-data well-formed?
<element>
<child1>
.....
</child1>
<element>
....
</element>
<child2/>
.....
</element>
Thank You
Neetha
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes
http://www.w3.org/TR/2000/REC-xml-20001006#sec-well-formed
[ May 01, 2002: Message edited by: Dmitry Kachaev ]
[ May 01, 2002: Message edited by: John Wetherbie ]
 
Rancher
Posts: 1449
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dmitry,
I modified your post slightly to add the hyperlink. Thanks for posting the URL to the relevant section of the XML recommendation.
[ May 01, 2002: Message edited by: John Wetherbie ]
 
Neetha Kasuganti
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you! guys.
I couldn't find the explanation anywhere in the well-formedness section at the URL you referred . I may not have interpreted it's presence .
I'd appreciate if one of you could give me the exact section number where it is said this nesting is possible.
Thanks again.
 
Now I am super curious what sports would be like if we allowed drugs and tiny ads.
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic