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
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.