Re: [xml] How to creata one big DOM from Multiple DOMS



On Tue, Oct 11, 2005 at 12:16:39PM -0500, Vedantam, Pavan wrote:

Hi,
I am using Libxml2 to parse the xml documents and build DOMS, I would like
to know if there is a provision for linking the DOMS so that all the DOMS
are under one ROOT ?,

  not really.

i.e I should be able to traverse the DOMS through one
starting point, just like a tree.

  you could move the element roots under the new top, but you should
first either disable dictionaries at parsing time or make sure all 
document are parsed with the same dictionnary (which is best done
by reusing the same parser context for all parses)

Daniel


-- 
Daniel Veillard      | Red Hat Desktop team 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]