The simplest thing you could do is to parse the InputStream with an XML parser of your choice. Then you can use XPath to select the node that you want. You can then initialize your XMLBeans object from that node.
________________________________ From: Eugen Okon <[email protected]> To: [email protected] Sent: Tuesday, December 16, 2008 10:20:48 AM Subject: Re: parse a part of xml Hi Andy, my interactions with the web service are limited to very basic operations, so i do not use any special framework ecxept apache commons. I get the response as an InputStream. Thats the reason i am search for a way to skip a part of the response. Even in the case i could get just the body of the soap message there would be some "pre-"tags generated by the Microsoft Project Web Service which i do not want to model as java objects. i have seen that the parse method has an additional parameter : XMLOptions, but i can't find out whether its helpfull for my aim or not. There should be a possibility to tell the parse which node shoult be treated as root - or not? I have search for similar problems in the mailinglist but i can't find anything. I think there should be more users which need this functionality or is my approach just wrong :)?

