staxmate

How to create Dom objects parsing an XML with Stax

一笑奈何 提交于 2019-12-25 03:54:05
问题 I have some difficulties to parse an XML using Stax in order to create org.w3c.dom.Document objects for parts of the XML tree. Ex.: <root> <children> <child>child 1</child> <child>child 2</child> <child>child 3</child> </children> </root> => I would like to create 3 DOM objects for each <child> node. I tried to do this using Staxmate and DomConverter but I have a problem ... My test project only depends on : stax2-api-3.0.3.jar staxmate-2.0.0.jar jdk 1.6.0_21 2 tests : Test 1 that works