I apologize if this has been answered in the past few days, but my search
in the archives brough up nothing.

I've just upgraded from 0.9.4.2 to 0.9.4.3 and am finding that new XML
queries I generate has many empty xmlns="" attribute in some elements.

With the old version, when I unmarshalled and printed, my generated XML
would look like:

<NexRes product="Hotel" xmlns="http://castor.exolab.org/";>
        <session>
                <language>ENG</language>
                <affiliate>
                        <id>123456789</id>
                </affiliate>
        </session
        ...


But now, I'm getting:

<NexRes product="Hotel" xmlns="http://castor.exolab.org/";>
        <session>
                <language xmlns="">ENG</language>
                <affiliate>
                        <id xmlns="">123456789</id>
                </affiliate>
        </session
        ...

Note the empty xmlns="" attributes in only some of the the elements.

I'm not sure why this would be happening.

Just in case, my xsd contains the following for the 'session' element:

<!--Description for session -->
<xsd:element name="session">
        <xsd:complexType>
                <xsd:sequence>
                        <xsd:element name="id" type="xsd:string"
                                minOccurs="0" maxOccurs="1"/>
                        <xsd:element name="timestamp"
                                type="xsd:string" minOccurs="0" maxOccurs="1"/>
                        <xsd:element name="language"
                                type="xsd:string" minOccurs="0" maxOccurs="1"/>
                        <xsd:element ref="affiliate"/>
                </xsd:sequence>
        </xsd:complexType>
</xsd:element>


        Rgs,
        Zeb

--
http://www.greece101.com

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to