I mailed a week or so back about this. Anybody got an idea where the probelm
may be ?

When you have a schema with appinfo elements containing further XML, the
marshaller seems to lose track of the XML in the app info, and as a result
the structure is lost. I think it's to do with the way child anyNode is
dealt with, since just having text in the appinfo works fine.

cheers

Tim Fulcher


read this in to a schema object

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";
    xmlns:prod="http://ripple.bt.com/products/hint";
    xmlns:ord="http://ripple.bt.com/products/order";
    xmlns:rip="http://ripple.bt.com/products/types";
xmlns="http://www.w3.org/2001/XMLSchema";>
    <xsd:annotation>
        <xsd:documentation>text goes in here </xsd:documentation>
    </xsd:annotation>
    <xsd:annotation>
        <xsd:appinfo>
<rp:hint xmlns:rp="http://ripple.bt.com/products/hints"; >
<rp:loca>1</rp:loca><rp:locb>0</rp:locb>
</rp:hint></xsd:appinfo>
    </xsd:annotation>

write it back out  - 

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";
    xmlns:prod="http://ripple.bt.com/products/hint";
    xmlns:ord="http://ripple.bt.com/products/order";
    xmlns:rip="http://ripple.bt.com/products/types";
    xmlns:rp="http://ripple.bt.com/products/hints";
xmlns="http://www.w3.org/2001/XMLSchema";>
    <xsd:annotation>
        <xsd:documentation>text goes in here </xsd:documentation>
    </xsd:annotation>
    <xsd:annotation>
        <xsd:appinfo>  10 </xsd:appinfo>
    </xsd:annotation>
....

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

Reply via email to