Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Perl Misc (http://www.velocityreviews.com/forums/f67-perl-misc.html)
-   -   Help with traversing an XML structure (http://www.velocityreviews.com/forums/t911169-help-with-traversing-an-xml-structure.html)

Michaelp 08-06-2009 12:20 PM

Help with traversing an XML structure
 
Hello!

I have a large number of huge XML-documents that I need to do things
with relatively fast.

I am trying to use the package XML::CompactTree::XS to interact with
the (relatively simple) XML-structurem of these documents.

(see a fragment here: http://inex.hio.no/~michaelp/test.xml )

The package parses a tree.

$reader = XML::LibXML::Reader->new(location => $url);
$tree = XML::CompactTree::XS::readSubtreeToPerl($reader );

Prettyprinting this tree with the aid of a data dumper, I get the
following:

>print Data::Dumper->Dump($tree);


$VAR1 = 9;
$VAR2 = 'UTF-8';
$VAR3 = [
[
1,
'document',
0,
undef,
[
'ARRAY(0x260eb90)',


All times are GMT. The time now is 07:09 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.