List Info

Thread: Problem in Converting XSD to Document




Problem in Converting XSD to Document
country flaguser name
United States
2007-10-03 02:00:56
My requirement is as follows :

I want to write a xsd which will contain a list of
ComplexType.But presently
I m getting error while trying to write this xsd. Is there
any way to put
complexType in a list?
-- 
View this message in context: http://www.nabble.com/Proble
m-in-Converting-XSD-to-Document-tf4560153.html#a13013844

Sent from the Xml Beans - User mailing list archive at
Nabble.com.


------------------------------------------------------------
---------
To unsubscribe, e-mail: user-unsubscribexmlbeans.apache.org
For additional commands, e-mail: user-helpxmlbeans.apache.org


Re: Problem in Converting XSD to Document
user name
2007-10-03 10:48:44
Are you referring to the use of xsd:list?
Then as far as I know there is no way to do this because xsd:list is limited to simpleTypes, built-in, and derived types.
Here is some more information on this type including what built-in types are supported.
http://www.w3.org/TR/xmlschema-0/#ListDt

Also, out of curiousity, how do you want your content represented? Items in a list are usually something like:
&lt;list>a b c</list>
How is your content type supposed to match this?
Hope this helps,
-jacobd

On 10/3/07, niamul < niamulqsgmail.com"> niamulqsgmail.com> wrote:

My requirement is as follows :

I want to write a xsd which will contain a list of ComplexType.But presently
I m getting error while trying to write this xsd. Is there any way to put
complexType in a list?
--
View this message in context: http://www.nabble.com/Problem-in-Converting-XSD-to-Document-tf4560153.html#a13013844
Sent from the Xml Beans - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribexmlbeans.apache.org">user-unsubscribexmlbeans.apache.org
For additional commands, e-mail: user-helpxmlbeans.apache.org">user-helpxmlbeans.apache.org


Re: Problem in Converting XSD to Document
country flaguser name
United States
2007-10-03 23:02:51
I want to put some complex Type is the list.
Is it possible?
Also can u suggest me the use of xs:ENTITIES and
xs:NMSTOKENS ?
There are little abount it in the internet .
Thanks in advance....


Jacob Danner-2 wrote:
> 
> Are you referring to the use of xsd:list?
> Then as far as I know there is no way to do this
because xsd:list is
> limited
> to simpleTypes, built-in, and derived types.
> Here is some more information on this type including
what built-in types
> are
> supported.
> http://www.w
3.org/TR/xmlschema-0/#ListDt
> 
> Also, out of curiousity, how do you want your content
represented? Items
> in
> a list are usually something like:
> <list>a b c</list>
> How is your content type supposed to match this?
> Hope this helps,
> -jacobd
> 
> On 10/3/07, niamul <niamulqsgmail.com> wrote:
>>
>>
>> My requirement is as follows :
>>
>> I want to write a xsd which will contain a list of
>> ComplexType.Butpresently
>> I m getting error while trying to write this xsd.
Is there any way to put
>> complexType in a list?
>> --
>> View this message in context:
>> http://www.nabble.com/Proble
m-in-Converting-XSD-to-Document-tf4560153.html#a13013844

>> Sent from the Xml Beans - User mailing list archive
at Nabble.com.
>>
>>
>>
------------------------------------------------------------
---------
>> To unsubscribe, e-mail: user-unsubscribexmlbeans.apache.org
>> For additional commands, e-mail: user-helpxmlbeans.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Proble
m-in-Converting-XSD-to-Document-tf4560153.html#a13032222

Sent from the Xml Beans - User mailing list archive at
Nabble.com.


------------------------------------------------------------
---------
To unsubscribe, e-mail: user-unsubscribexmlbeans.apache.org
For additional commands, e-mail: user-helpxmlbeans.apache.org


Re: Problem in Converting XSD to Document
user name
2007-10-04 01:30:24
Can you clarify, (maybe using an xml instance) what your
complexType
List would look like. As far as I am aware this is not
possible
because its illegal/invalid according to the schema
specification.
Also, to me, using list ONLY makes sense using a simple type
anyway.
 If you can let the list know what you are hoping your
instance will
look like maybe we can suggest something more suitable.

As far as the data types, I usually look to the
w3schools.com xsd
tutorial or part2 of the xml schema spec.

-jacobd

On 10/3/07, niamul <niamulqsgmail.com> wrote:
>
> I want to put some complex Type is the list.
> Is it possible?
> Also can u suggest me the use of xs:ENTITIES and
xs:NMSTOKENS ?
> There are little abount it in the internet .
> Thanks in advance....
>
>
> Jacob Danner-2 wrote:
> >
> > Are you referring to the use of xsd:list?
> > Then as far as I know there is no way to do this
because xsd:list is
> > limited
> > to simpleTypes, built-in, and derived types.
> > Here is some more information on this type
including what built-in types
> > are
> > supported.
> > http://www.w
3.org/TR/xmlschema-0/#ListDt
> >
> > Also, out of curiousity, how do you want your
content represented? Items
> > in
> > a list are usually something like:
> > <list>a b c</list>
> > How is your content type supposed to match this?
> > Hope this helps,
> > -jacobd
> >
> > On 10/3/07, niamul <niamulqsgmail.com> wrote:
> >>
> >>
> >> My requirement is as follows :
> >>
> >> I want to write a xsd which will contain a
list of
> >> ComplexType.Butpresently
> >> I m getting error while trying to write this
xsd. Is there any way to put
> >> complexType in a list?
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Proble
m-in-Converting-XSD-to-Document-tf4560153.html#a13013844

> >> Sent from the Xml Beans - User mailing list
archive at Nabble.com.
> >>
> >>
> >>
------------------------------------------------------------
---------
> >> To unsubscribe, e-mail: user-unsubscribexmlbeans.apache.org
> >> For additional commands, e-mail: user-helpxmlbeans.apache.org
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Proble
m-in-Converting-XSD-to-Document-tf4560153.html#a13032222

> Sent from the Xml Beans - User mailing list archive at
Nabble.com.
>
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: user-unsubscribexmlbeans.apache.org
> For additional commands, e-mail: user-helpxmlbeans.apache.org
>
>

------------------------------------------------------------
---------
To unsubscribe, e-mail: user-unsubscribexmlbeans.apache.org
For additional commands, e-mail: user-helpxmlbeans.apache.org


Re: Problem in Converting XSD to Document
country flaguser name
United States
2007-10-04 01:45:12
I have an object , say PersonalInfo which contains two
fields name and
address.
Now I need a list of PersonalInfo.
My xsd definition is as follows :

<xs:simpleType name="PersonalInfoList">
    <xs:list itemType="PersonalInfo "/>
</xs:simpleType>

<xs:complexType name="PersonalInfo ">
    <xs:sequence>
        <xs:element name="Name"
type="xs:string"/>
        <xs:element name="Address"
type="xs:string"/>
    </xs:sequence> 
</xs:complexType>

but in current version of xsd, this is not supported.
I think there should be some ways to achieve this.....




Jacob Danner-2 wrote:
> 
> Can you clarify, (maybe using an xml instance) what
your complexType
> List would look like. As far as I am aware this is not
possible
> because its illegal/invalid according to the schema
specification.
> Also, to me, using list ONLY makes sense using a simple
type anyway.
>  If you can let the list know what you are hoping your
instance will
> look like maybe we can suggest something more
suitable.
> 
> As far as the data types, I usually look to the
w3schools.com xsd
> tutorial or part2 of the xml schema spec.
> 
> -jacobd
> 
> On 10/3/07, niamul <niamulqsgmail.com> wrote:
>>
>> I want to put some complex Type is the list.
>> Is it possible?
>> Also can u suggest me the use of xs:ENTITIES and
xs:NMSTOKENS ?
>> There are little abount it in the internet .
>> Thanks in advance....
>>
>>
>> Jacob Danner-2 wrote:
>> >
>> > Are you referring to the use of xsd:list?
>> > Then as far as I know there is no way to do
this because xsd:list is
>> > limited
>> > to simpleTypes, built-in, and derived types.
>> > Here is some more information on this type
including what built-in
>> types
>> > are
>> > supported.
>> > http://www.w
3.org/TR/xmlschema-0/#ListDt
>> >
>> > Also, out of curiousity, how do you want your
content represented?
>> Items
>> > in
>> > a list are usually something like:
>> > <list>a b c</list>
>> > How is your content type supposed to match
this?
>> > Hope this helps,
>> > -jacobd
>> >
>> > On 10/3/07, niamul <niamulqsgmail.com> wrote:
>> >>
>> >>
>> >> My requirement is as follows :
>> >>
>> >> I want to write a xsd which will contain a
list of
>> >> ComplexType.Butpresently
>> >> I m getting error while trying to write
this xsd. Is there any way to
>> put
>> >> complexType in a list?
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Proble
m-in-Converting-XSD-to-Document-tf4560153.html#a13013844

>> >> Sent from the Xml Beans - User mailing
list archive at Nabble.com.
>> >>
>> >>
>> >>
------------------------------------------------------------
---------
>> >> To unsubscribe, e-mail:
user-unsubscribexmlbeans.apache.org
>> >> For additional commands, e-mail:
user-helpxmlbeans.apache.org
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Proble
m-in-Converting-XSD-to-Document-tf4560153.html#a13032222

>> Sent from the Xml Beans - User mailing list archive
at Nabble.com.
>>
>>
>>
------------------------------------------------------------
---------
>> To unsubscribe, e-mail: user-unsubscribexmlbeans.apache.org
>> For additional commands, e-mail: user-helpxmlbeans.apache.org
>>
>>
> 
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: user-unsubscribexmlbeans.apache.org
> For additional commands, e-mail: user-helpxmlbeans.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Proble
m-in-Converting-XSD-to-Document-tf4560153.html#a13033530

Sent from the Xml Beans - User mailing list archive at
Nabble.com.


------------------------------------------------------------
---------
To unsubscribe, e-mail: user-unsubscribexmlbeans.apache.org
For additional commands, e-mail: user-helpxmlbeans.apache.org


Re: Problem in Converting XSD to Document
user name
2007-10-04 12:33:59
I think you might be confused as to what an xsd:list
actually
represents. Take a peek at one of the references I noted
previously.

In the meantime, you will need to change your xsd and make
personalinfolist an element or a complextype and then define
a type
based on personal info using maxOccurs > 1. when you
compile your xsd
using scomp, you'll now get an array for personalinfo.

-jacobd

On 10/3/07, niamul <niamulqsgmail.com> wrote:
>
> I have an object , say PersonalInfo which contains two
fields name and
> address.
> Now I need a list of PersonalInfo.
> My xsd definition is as follows :
>
> <xs:simpleType
name="PersonalInfoList">
>     <xs:list itemType="PersonalInfo
"/>
> </xs:simpleType>
>
> <xs:complexType name="PersonalInfo ">
>     <xs:sequence>
>         <xs:element name="Name"
type="xs:string"/>
>         <xs:element name="Address"
type="xs:string"/>
>     </xs:sequence>
> </xs:complexType>
>
> but in current version of xsd, this is not supported.
> I think there should be some ways to achieve this.....
>
>
>
>
> Jacob Danner-2 wrote:
> >
> > Can you clarify, (maybe using an xml instance)
what your complexType
> > List would look like. As far as I am aware this is
not possible
> > because its illegal/invalid according to the
schema specification.
> > Also, to me, using list ONLY makes sense using a
simple type anyway.
> >  If you can let the list know what you are hoping
your instance will
> > look like maybe we can suggest something more
suitable.
> >
> > As far as the data types, I usually look to the
w3schools.com xsd
> > tutorial or part2 of the xml schema spec.
> >
> > -jacobd
> >
> > On 10/3/07, niamul <niamulqsgmail.com> wrote:
> >>
> >> I want to put some complex Type is the list.
> >> Is it possible?
> >> Also can u suggest me the use of xs:ENTITIES
and xs:NMSTOKENS ?
> >> There are little abount it in the internet .
> >> Thanks in advance....
> >>
> >>
> >> Jacob Danner-2 wrote:
> >> >
> >> > Are you referring to the use of
xsd:list?
> >> > Then as far as I know there is no way to
do this because xsd:list is
> >> > limited
> >> > to simpleTypes, built-in, and derived
types.
> >> > Here is some more information on this
type including what built-in
> >> types
> >> > are
> >> > supported.
> >> > http://www.w
3.org/TR/xmlschema-0/#ListDt
> >> >
> >> > Also, out of curiousity, how do you want
your content represented?
> >> Items
> >> > in
> >> > a list are usually something like:
> >> > <list>a b c</list>
> >> > How is your content type supposed to
match this?
> >> > Hope this helps,
> >> > -jacobd
> >> >
> >> > On 10/3/07, niamul <niamulqsgmail.com> wrote:
> >> >>
> >> >>
> >> >> My requirement is as follows :
> >> >>
> >> >> I want to write a xsd which will
contain a list of
> >> >> ComplexType.Butpresently
> >> >> I m getting error while trying to
write this xsd. Is there any way to
> >> put
> >> >> complexType in a list?
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://www.nabble.com/Proble
m-in-Converting-XSD-to-Document-tf4560153.html#a13013844

> >> >> Sent from the Xml Beans - User
mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >>
------------------------------------------------------------
---------
> >> >> To unsubscribe, e-mail:
user-unsubscribexmlbeans.apache.org
> >> >> For additional commands, e-mail:
user-helpxmlbeans.apache.org
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Proble
m-in-Converting-XSD-to-Document-tf4560153.html#a13032222

> >> Sent from the Xml Beans - User mailing list
archive at Nabble.com.
> >>
> >>
> >>
------------------------------------------------------------
---------
> >> To unsubscribe, e-mail: user-unsubscribexmlbeans.apache.org
> >> For additional commands, e-mail: user-helpxmlbeans.apache.org
> >>
> >>
> >
> >
------------------------------------------------------------
---------
> > To unsubscribe, e-mail: user-unsubscribexmlbeans.apache.org
> > For additional commands, e-mail: user-helpxmlbeans.apache.org
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Proble
m-in-Converting-XSD-to-Document-tf4560153.html#a13033530

> Sent from the Xml Beans - User mailing list archive at
Nabble.com.
>
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: user-unsubscribexmlbeans.apache.org
> For additional commands, e-mail: user-helpxmlbeans.apache.org
>
>

------------------------------------------------------------
---------
To unsubscribe, e-mail: user-unsubscribexmlbeans.apache.org
For additional commands, e-mail: user-helpxmlbeans.apache.org


[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )