On Wed, 20 Feb 2002, Tod Harter wrote:

> I guess what I'm saying is, suppose you wanted to implement something like 
> SOAP::Lite on top of libxml. It just doesn't give you the ability to do much 
> with the parsed DOM tree, and SOAP::Lite needs fine grained access to the 
> resulting data structures. 
> 
> Maybe my understanding of LibXML is out of date, but the pod for the version 
> I have says basically "DOM level access is something for the future". I have 
> way too much stuff to do to keep up with all of Matt's advances, hehe. 

You could have looked at the AxKit code to understand what can be done.
But anyway...

The parse_whatever() functions return an XML::LibXML::Document object (so
"man XML::LibXML::Document"). You can call $doc->documentElement to
receive an XML::LibXML::Element object (actually it'll be
XML::LibXML::Text or XML::LibXML::Node or whatever). You can check its
type, retrieve children, set attributes, etc.  They're all Perl functions
that call to the underlying C structure.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to