Re: [flexcoders] Find and replace wih regex?

2007-04-27 Thread Erik Price
On 4/26/07, b_alen [EMAIL PROTECTED] wrote:
 I have a huge XML file with complex DTD. Now I have to parse this into
 something more usable by stripping the redundant tags and modifying
 some of them. I see two options:

 1. Recursivly visit all the nodes and handle them with if statements.
 2. Use RegEx to do some sort of find and replace.

 The second options seems easier and faster if someone can point me in
 the right direction. Or maybe some other ideas?

Just an idea - if your XML is coming from the server, perhaps running
an XSL transformation on the document would be easier and faster.

e


[flexcoders] Find and replace wih regex?

2007-04-26 Thread b_alen
I have a huge XML file with complex DTD. Now I have to parse this into
something more usable by stripping the redundant tags and modifying
some of them. I see two options:

1. Recursivly visit all the nodes and handle them with if statements.
2. Use RegEx to do some sort of find and replace. 

The second options seems easier and faster if someone can point me in
the right direction. Or maybe some other ideas?

Thanks,
Alen