It's too early for XSLT as there are numerous redundant tags. Just to get an idea, there are about 400 tags with at least 3 attributes average, with some of them needed to be combined, smome of them split into several tags, some of them removed, etc. But I found the solution. I will do the initial cleaning with regex, casting the whole XML to String, which so powerfull and fast in AS3 that I couldn't believe it. And then create the final XML output with XML class, do some modifications, etc. Really, with regex what seemed to be a huge problem in the beginning is now a piece of cake. It is still a huge piece, but of cake.
I'm basically creating my own "XSLT" which converts this XML into something that can be renderable in Flash/Flex. Cheers --- In flexcoders@yahoogroups.com, "Erik Price" <[EMAIL PROTECTED]> wrote: > > 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 >