Groups | Blog | Home
all groups > dotnet xml > december 2003 >

dotnet xml : Can XML describe different hierarchical data?


Bruce W.1
12/23/2003 9:30:00 PM
I want an XML file to describe hierarchical data where each node is
different. Each node will contain different and varied other nodes.
Describing this in an XML file would be easy but I'm having a problem
with this as related to DTD or XSD.

What the XSD really needs to do is describe a node, which can contain
other nodes. It could not describe the hierarchy of all the nodes in
the XML file. Is it possible to describe a free-form hierarchy in an
XSD file?

Oleg Tkachenko
12/24/2003 10:08:08 AM
[quoted text, click to view]

Sure. Read "5.5 Any Element, Any Attribute" in XML Schema Primer -
http://www.w3.org/TR/xmlschema-0/#any

--
Oleg Tkachenko
XML Insider
AddThis Social Bookmark Button