in reply to Re^3: xml parsing without using cpan modules
in thread xml parsing without using cpan modules
Of course you can parse using regular expressions. You just shouldn't grope around in a string representing an XML document using regular expressions, because you have to be certain about the context in which any match occured. That means you have to scan the string strictly front-to-back, probably using the /gc options and the \G anchor to make sure you don't miss anything. Simply picking matches out of the middle of the string is very likely to be a broken approach unless you are dealing with a known subset of XML syntax.
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: xml parsing without using cpan modules
by iburrell (Chaplain) on Aug 10, 2004 at 19:38 UTC | |
|
Re^5: xml parsing without using cpan modules
by Nalina (Monk) on Aug 11, 2004 at 06:29 UTC | |
by mirod (Canon) on Aug 11, 2004 at 12:39 UTC |