[xml] single root element

2013-10-02 Thread Vojtech Fried
Hi, I have a slightly philosophical question. XML specs says that there can be only one root element in a XML document. However, libxml allows you to have any number of element children in a document node. Starting from a valid document, you can add or remove child elements of the document node

Re: [xml] single root element

2013-10-02 Thread Steve Ball
Hi Vojtech, Although an XML document may only have a single document (root) element, an external entity does not have this restriction. Take for example two documents, foo.xml and bar.xml: foo.xml contains: ]> &bar; and bar.xml contains: one two three then foo.xml is well-formed. bar.x