Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - extract inner xml... [Thread Next] Re: extract inner xml...To: NULL Date: 3/19/2009 5:21:00 PM Loocek a écrit : > Hi, > > I need to find and extract inner xml and save as String. > I cannot find that functionality in any [DOM,SAX,STAX] xml parser in > java... > I was able to do it in DOM by serializing Node - but is stupid solution.... > Would you give me any suggestion [or part of example] how to do it? > My XMLs are quite big... [100k] > > Thanks for any help > > Regards > Pawel Z You can do it in SAX by enabling a flag when the "inner" XML start, and then keep reconstructing the XML from XML events (start/endElement() and characters() mainly) until the end of the inner XML is reached. HTH | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
