Hi Klaus,

After you go to the first Element after the existing result element, as
you say, why do you call getDomNode() and parse it again into XmlObject?
This seems redundant, why not just use the result of
XmlCursor.getObject()?

Radu 

> -----Original Message-----
> From: Klaus Dobbler [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, June 04, 2008 6:46 AM
> To: user@xmlbeans.apache.org
> Subject: Getting exist queryResult into XMLBeans
> 
> Hey.
> 
> I am currently developing a software under java to query data 
> from exist and put the results into XMLBeans.
> 
>   my collection consits of 1 document. this document has some 
> xsi:type attributes. (for example ContentCollectionType)
> 
> I'm using the xml:db api through java and I'm getting the 
> result as XMLResource. (i inserted the needed namespaces in 
> the XPathQueryService before) Then i convert this into a 
> DOM-Node (getMemebers as Dom) and parse the DOM Node into a 
> XMLObject. With a XMLCursor i go to the first Element after 
> the exist result element,  
> call getObject(), getDomNode() and parse it again into a XMLObject.   
> This XMLObject i assign to the apropriate Beans-Type. For 
> some types it works, but not for the Elements with the 
> xsi:type attributes.
> 
> Does somebody know why this could be, or how i can do this 
> better and easier?  I hope there is somebody who can help me,
> 
> regards
> 
> Klaus
> 
> regards
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

Notice:  This email message, together with any attachments, may contain 
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated 
entities,  that may be confidential,  proprietary,  copyrighted  and/or legally 
privileged, and is intended solely for the use of the individual or entity 
named in this message. If you are not the intended recipient, and have received 
this message in error, please immediately return this by email and then delete 
it.

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

Reply via email to