MKrauss
asked on
parsing xml
currently i'm using xml::simple for parsing xml strings, like
my $data = $xml->XMLin("$xmls",ForceA rray => 1);
the xml strings has many nodes and elements included and has a size of 50KB up to 200KB and more,
depending and the nodes it takes sometimes over 400ms to get $data filled.
I'm using ForceArray => 1 because the xml tree has dynamicly nodes appearing where i dont know if
they exist or not.
Is there any option to tune this so that this is going faster ?
Many yhx
Matt.
my $data = $xml->XMLin("$xmls",ForceA
the xml strings has many nodes and elements included and has a size of 50KB up to 200KB and more,
depending and the nodes it takes sometimes over 400ms to get $data filled.
I'm using ForceArray => 1 because the xml tree has dynamicly nodes appearing where i dont know if
they exist or not.
Is there any option to tune this so that this is going faster ?
Many yhx
Matt.
Take a look at this, http://search.cpan.org/~grantm/XML-Simple-2.16/lib/XML/Simple.pm#ENVIRONMENT By selecting a different default parser (one written in C for example), you can get a speed improvement.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.