Ajith Ranabahu wrote:

2. Since Axis2 is based on StAX, we have a heavy dependency on the XML Stream reader. However the returned XML Stream reader has it's initial pointer to START_ELEMENT not START_DOCUMENT. Our builder code expects a START_DOCUMENT event initially. We've overcome the problem with a wrapper but it's not really elegant in terms of code. Was the placement of the initial pointer done deliberately for a reason ?

Are you using the Document type? i.e. DocumentXmlBeanFoo instead of XmlBeanFoo? Not every xmlbeans class represents a document, so not every xmlstreamreader should start with START_DOCUMENT. In addition you might want to consider that parsing document fragments via stax can be a common use case.

- Dan

--
Dan Diephouse
Envoi Solutions LLC
http://netzooid.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to