Re: [xml] Is a document a node? Is there a "virtual root node"?



On Wed, Dec 28, 2005 at 12:01:53PM +0000, Theodore H.Smith wrote:
<?xml version="1.0"?>
<!-- hi -->
<root>another little bit of data</root>


Now, this leads me to wonder, whats the best way to copy these  
comments. If the document is also a node, or there is some node that  

  the document is a node with 2 child in that case, the comment and
the root node.

Daniel

-- 
Daniel Veillard      | Red Hat http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]