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 Veillard      | Red Hat
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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