in reply to Re: Regex et XML
in thread Regex et XML
Perhaps the OP has severe memory concerns (i.e. over bloated giant XML file)? If so, writing a SAX parser only to remove pieces of XML would be painful and DOM would not be a good choice. Yet line-oriented parsing isn't going to work with XML anyway, so you are slurping -- hence memory issues again. Yep, it would be best to pick one of the other (DOM-ish or SAX-ish), despite the tradeoffs. Maintaining Yet-Another-XML-Manipulator would be quite painful. If the file is small by machine standards, absolutely, XML::Simple is the easiest way to go. Do it, and you can still think mostly in Perl!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Regex et XML
by waswas-fng (Curate) on Feb 25, 2004 at 23:05 UTC |