Hi, (mainly justin I expect)

in xml-xsd, the Encoder class,  when encoding a feature the following
method gets called:

 encode( Object object, QName name, ContentHandler handler)

which I've followed in eclipse debugger to

and for the case of the gml:id of the feature,
executor.getChildObject() returns null:

                                        if (executor.getChildObject() != null) {
                                                //encode the attribute
                                                Attr attr = (Attr) 
encode(executor.getChildObject(),attribute);
                                                if (attr != null) {
                                                        
entry.encoding.setAttributeNodeNS(attr);
                                                }
                                        }



the result is that some attributes dont get encoded properly - the
gml:id for one:

<aw:SiteLocation>
<gml:name 
gml:codeSpace="http://escawri.org.au/identifiers/public/samplingstations";>A0020101</gml:name>
<sa:sampledFeature xlink:href="urn:x-ogc:def:nil:OGC:unknown"
xlink:title="Unknown"/>
−
        <sa:position>
−
        <gml:Point>
<gml:pos>139.367 -25.9085</gml:pos>
</gml:Point>
</sa:position>
<aw:samplingRegimeType>monitoring</aw:samplingRegimeType>
</aw:SiteLocation>


This behaviour is broken sometime since the 2.4 branch - a build from
trunk just before worked fine. I had a squiz at theSVN logs but
couldnt see any obvious changes.

Any clues?

Rob A

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to