XML and ObjectDB

#1

Hi All,

I am new to ObjectDB and trying learn more about it.  I couldn't find much information about this on Google or this site so I am asking for more help in here.

What is the typical way to persist XML into ObjectDB?  Do you need to generate JAXB JAVA bindings and then persist the generated JAVA bindings to ObjectDB?

If this is one way, is there any alternative ways?

Thanks,

David

#2

ObjectDB can be used to store any type of data including XML.

For example, you can define a generic Element entity and store the XML as a tree of Element nodes.

Another option is to define a separate entity class per XML element type.

You can also store an entire non parsed XML file as string or byte[] in one entity object.

Every method has its pros and cons so it depends on your specific needs.

ObjectDB Support

Reply