You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Viji <ja...@pcci.com> on 2005/04/26 12:58:28 UTC
How to use Java Map object as a type in xml schema element tag ?
Hi,
Can anyone help me how to define a Java Map(or in other words a name/value
pair "type") for an element tag in xml schema ?
<xs:element name="ResultValues" type="xsd:Map"/>
Thanks
Viji
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org
Re: How to use Java Map object as a type in xml schema element
tag ?
Posted by Serge <te...@udm.ru>.
Hello.
You can create your own complex type, e.g. as follows:
<xs:complexType name="map">
<xs:sequence>
<xs:element name="entry" minOccurs="0"
maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="key"/>
<xs:element name="value"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
and then reference it:
<xs:element name="ResultValues" type="map"/>
On Tue, 26 Apr 2005 06:58:28 -0400
"Viji" <ja...@pcci.com> wrote:
> Hi,
>
> Can anyone help me how to define a Java Map(or in other
> words a name/value
> pair "type") for an element tag in xml schema ?
>
> <xs:element name="ResultValues" type="xsd:Map"/>
>
> Thanks
> Viji
>
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail:
> user-help@xmlbeans.apache.org
>
_____
Best Regards, Serge.
mailto:teron@udm.ru
ICQ 315293596
"СОЛО на клавиатуре" - обучение слепому десятипальцевому
набору
Для получения информации посетите, пожалуйста, сайт
http://www.ergosolo.ru
----------------------------------------------------
Треть суток на треть дешевле!
МАРК-ИТТ ввёл льготные цены на ночной трафик в Народном Интернете
цены на трафик на 30% ниже дневных в период с 1:00 до 9:00.
600-й - 1.75р, Профессиональный - 1.89р, Деловой - 1.96р, 5-ка - 2,03р, Домашний - 2,10р
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org