Flatten the xml file

alexistkd

New Member
I want to write a generic xml parser which can flatten any xml file. e.g.if the xml has structure like :\[code\]<A a="a1"> <B> b </B> <C> <D> d1 </D> <D> d2 </D> </C> <C> <D> d3 </D> </C> <E> e1 </E> </A>\[/code\]I should get the output like : a1 b d1 e1a1 b d2 e1a1 b d3 e1I want the parser to be generic so that it could be applied to any xml without the knowledge of the tags. I have heard of XSLT. But I am not sure whether we can write a generic XSL w/o the knowledge of xml tags. XML files can be size of ~ 1Gb. Is there a generic soln for this problem?
 
Back
Top