yup.
we need to move a xml data in to the persistence store.
There is a internal framework which takes this xml data and validates it and move to the database.It uses XMLBeans for the same.
The columns in the table will like below
id primary key [auto generated]
name
string description string
XSD string
In this XSD colum input will be a schema content which will later used by the application.
A sample content of xml will look like below
<?xml version="1.0" encoding="UTF-8"?>
<objects xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<eschema xmlns="urn:com:sample:one:1.0">
<Name>name</Name>
<Description>description</Description>
<Xsd>
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema attributeFormDefault="unqualified" version="1.0" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="im" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element type="xs:string" name="senderID" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</Xsd>
</eschema>
</objects>