Looks pretty good to me.
We’re got a document node, 3 element nodes, an attribute node, a comment node, 
a processing instruction, and a text node.
The only thing that seems to be missing (didn’t realize that before) are 
namespaces!
So maybe we can change it to be this:

<?xml version="1.0"?>
<catalog xmlns:ex="http://example.org/"; >
  <ex:book isbn="0812416139">
    <!--top secret-->
    <title>Macbeth</title>
    <?hide?>
  </ex:book>
</catalog>

Cheers,
Till


> On May 1, 2015, at 5:10 PM, Eldon Carman <[email protected]> wrote:
> 
> In an effort to improve our documentation, Shivani suggested adding a
> commented XDM representation for a sample XML document on our website. Till
> suggested the document include all the different types of elements that can
> be in a XML document (attribute, comments, etc.). Here is a suggested XML
> document:
> 
> <?xml version="1.0"?>
> <catelog>
>  <book "title"="007">
>    <!--top secret-->
>    <foo>bar</foo>
>    <?hide?>
>  </book>
> </catelog>
> 
> Does this provide enough variety to make a complete example?

Reply via email to