Link to home
Start Free TrialLog in
Avatar of MKrauss
MKrauss

asked on

parsing xml

currently i'm using xml::simple for parsing xml strings, like
my $data = $xml->XMLin("$xmls",ForceArray => 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.
Avatar of Kim Ryan
Kim Ryan
Flag of Australia image

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
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial