[xsd-users] CodeLists handling

Boris Kolpackov boris at codesynthesis.com
Tue Aug 27 07:02:09 EDT 2013


Hi Olivier,

Olivier Tournaire <olitour at gmail.com> writes:

> <gml:dictionaryEntry>
>   <gml:Definition gml:id="id1">
>     <gml:description>flat roof</gml:description>
>     <gml:name>1000</gml:name>
>   </gml:Definition>
> </gml:dictionaryEntry>
> 
> When I read a gml file which contains information about roof type, I can
> retrieve, if it exists, the "1000" value. I would like to know how I can
> make the correspondance between "1000" and "flat roof".

I am not sure I see what the problem is. Given the object corresponding
to the gml:name element, you can get the containing object (gml:Definition)
using the _container() function. Then you can get to gml:description.

Boris



More information about the xsd-users mailing list