users@jaxb.java.net

Re: Unmarshal issue with xs:import

From: jyoti chhabra <jyoti.chhabra_at_gmail.com>
Date: Tue, 16 Jun 2009 21:12:53 +0530

Now object1 has namespace of "http://abc.xyz.com/Common", and part of
separate schema.

This is the new file:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema targetNamespace="http://abc.xyz.com/Common"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:tns="hhttp://abc.xyz.com/Common"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
elementFormDefault="qualified">

<xs:complexType name="Object1">
<xs:sequence>
<xs:element name="Object1Id" type="xs:long" minOccurs="0" maxOccurs="1"/>
<xs:element name="Object1Name" type="xs:string" minOccurs="0" maxOccurs="1"/>
</xs:sequence> </xs:complexType>
</xs:schema>

Regards,
Jyoti

On Tue, Jun 16, 2009 at 9:08 PM, Wolfgang Laun<wolfgang.laun_at_gmail.com> wrote:
> The elements of Object1 (according to your orignal schemas) are in the
> http://www.w3.org/2001/XMLSchema namespace. Do you still need a separate
> schema and/or for Object1?
>
> I'm not sure what you have now, after using the Org.xsd to change the
> Adapter's package.
> -W
>
>
> On 6/16/09, jyoti chhabra <jyoti.chhabra_at_gmail.com> wrote:
>>
>> Cool. Thanks. It removed the Adapter error.
>> But what should i change in the xml? And why is this one not working?
>>
>> Regards,
>> Jyoti
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
>> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>>
>
>