Re: Regular Expression for XML Parsing
- From: Jürgen Exner <jurgenex@xxxxxxxxxxx>
- Date: Thu, 27 Dec 2007 22:49:34 GMT
On tushar.saxena@xxxxxxxxx wrote:
I have a set of XML files
I need to extract the DATA part of the xml structure
If I want to get both DATA1 and DATA2 I can use a simple regex like :
It's a bad idea in the first place. XML is not a regular language, why would
you use regular expressions to parse it?
Any help would be appreciated !
Use a tool that is designed to parse XML like e.g. any of the XML parser
modules on CPAN.
jue
.
- References:
- Regular Expression for XML Parsing
- From: tushar . saxena
- Regular Expression for XML Parsing
- Prev by Date: new "state" variables... nest properly??
- Next by Date: Creating a feedback form in html
- Previous by thread: Regular Expression for XML Parsing
- Next by thread: Re: Regular Expression for XML Parsing
- Index(es):
Relevant Pages
|
|