You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by Syed <sy...@readiminds.com> on 2004/06/10 11:29:04 UTC
Parsing XSD file and building object model!
Hello All,
I am trying to use the JAXMe framework for parsing the XSD file and to
build an object model out of that, I understand that the source
generator does provides the java classes but I am more keen in parsing
the XSD file and getting more important information such as constraints
etc and the object model requirements are dynamic value object
pattern. Below are the details:
My requirement is given a schema file, I need to PARSE and build an
object model. The object model is dynamic in the sense, the class is of
type "Hashmap" and key values will be attribute name and value will be
"type of attribute ".
Meaning,
Say below is the schema file
<xs:element name=firstname type=string>
<xs:element name=employeeid type=integer>
<xs:element name="Address">
<xs:complexType>
<xs:sequence>
<xs:element name="addressline1" type="xs:string"/>
<xs:element name="addressline2" type="xs:string"/>
</xs:sequence>
</xs:complexType>
then the resultant hashmap should look like this
Hashmap=
key value
firstname string
employeeid integer
address hashmap obj
(addressline1,string)
(addressline2, string)
I am wondering how I can achieve this using JAXMEXS or should I use some
other product for this like JAXMe source generator?
I highly appreciate ur speedy response.
Thanks,
Arshad