« Return to Thread: Getting exist queryResult into XMLBeans

Getting exist queryResult into XMLBeans

by Klaus Dobbler :: Rate this Message:

Reply to Author | View in Thread

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: user-unsubscribe@...
For additional commands, e-mail: user-help@...

 « Return to Thread: Getting exist queryResult into XMLBeans

LightInTheBox - Buy quality products at wholesale price!