meow00
asked on
How do I create a java map from xsd
Hi experts,
I am trying to use xsd to create java class. For example I have class A as followings:
-------------------------- ---------- ---------- ---------- ---------- ----
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.xxx.com/AAA/entities"
targetNamespace="http://www.xxx.com/AAA/entities" elementFormDefault="qualif ied">
<xs:element name="classA">
<xs:complexType>
<xs:sequence>
<xs:element ref="namer" />
<xs:element ref="value />
<xs:element ref="myMap" type="xs:string" maxOccurs="unbounded" /> ---> line 00
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
-------------------------- ---------- ---------- -----
How do I modify line 00 so that I can have a hash map in my class? Thanks!
I am trying to use xsd to create java class. For example I have class A as followings:
--------------------------
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.xxx.com/AAA/entities"
targetNamespace="http://www.xxx.com/AAA/entities" elementFormDefault="qualif
<xs:element name="classA">
<xs:complexType>
<xs:sequence>
<xs:element ref="namer" />
<xs:element ref="value />
<xs:element ref="myMap" type="xs:string" maxOccurs="unbounded" /> ---> line 00
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
--------------------------
How do I modify line 00 so that I can have a hash map in my class? Thanks!
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.