in reply to Re^2: extracting data from HTML
in thread extracting data from HTML
Yes, it returns plain text because the textContent method is documented as:
this function returns the content of all text nodes in the descendants of the given node as specified in DOM. (perldoc XML::LibXML::Node)
Data::Dumper won't be much use with XML::LibXML. Nodes are all just numeric pointers to structures at the other side of the XS boundary (i.e. C structures). There is XML::LibXML::Debugging which allows, e.g.
print Dumper( $xml->toDebuggingHash );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: extracting data from HTML
by Jurassic Monk (Acolyte) on Jun 05, 2012 at 20:56 UTC | |
by tobyink (Canon) on Jun 05, 2012 at 21:59 UTC | |
by Jurassic Monk (Acolyte) on Jun 06, 2012 at 15:37 UTC |