May be you should use XSLT to do the transformation. Anyway this seems like a question for xerces user list.
Thanks, Supun.. On Thu, Jan 30, 2014 at 7:35 AM, sowmiya kandasamy <[email protected]>wrote: > > Hi All, > > > > My XML file is, > > <student> > <Id>1</id> > <name>sowmi</name> > </student> > <student> > <Id>2</id> > <name>sowmi</name> > </student> > > > I want to process this file using Stax parser.And transform Xml > content into separate XML files.The Xml file name should be the Id of the > student like 1.xml,2.xml.The Xml file should contains the details as > > 1.xml > > <student> > <Id>1</id> > <name>sowmi</name> > </student> > > > Can you please send coding regarding the above objective? > Can you please guide us? > > Thank you, > Sowmiya > > > > -- Supun Kamburugamuva Member, Apache Software Foundation; http://www.apache.org E-mail: [email protected]; Mobile: +1 812 369 6762 Blog: http://supunk.blogspot.com
