jaxb - How to get the root element in Moxy -
i trying create xml analyzing xsd using moxy. not aware of how xsd looks like. xsd provided on fly. using moxy able load xsd , print details of xmldescriptors. question is, how identify root element.
thanks
having xsd, global type can root element of xml document. such global type, use method
org.eclipse.persistence.oxm.xmldescriptor#getdefaultrootelement to name of root element.
Comments
Post a Comment