Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Help with traversing an XML structure

Reply
Thread Tools

Help with traversing an XML structure

 
 
Michaelp
Guest
Posts: n/a
 
      08-06-2009
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:umper->Dump($tree);


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

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
traversing a hash structure ela Perl Misc 3 08-30-2011 01:05 AM
Traversing Hash or XML? Which is Fast thomson ASP .Net 0 12-27-2005 05:57 AM
help traversing and modifying hash key and value inplace Trans Ruby 8 04-13-2005 02:52 PM
Traversing an XML Schema possible? M XML 0 08-05-2004 09:02 AM
XML - traversing in VB Asad ASP .Net 1 04-16-2004 02:20 AM



Advertisments