On Jul 2, 2009, at 8:44 AM, Paul M wrote:

Hi All:

Though usually not recommended, if I were required to take XML from a MarkLogic Repository and convert it to an object within Java, what would be the best approach if:

The XML snippet being returned from ML follows a specific known schema. (I believe there are some tools available?)
The XML snippet contains multiple objects
<books><book rec="1"><title>hi</title></book></books>
The fastest method to ingest an XML snippet to Java object (vs the most usable or vs some other metric.)


JAXB

https://jaxb.dev.java.net/



P.S. What if I wanted a generic object that can be used by multiple systems (java, c++, etc)

XML? Or transform to JSON?

Different and young, but this looks interesting - http://www.xmlvm.org/overview/

-Rob



How have you accomplished similar tasks?


_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to