Hi list
I built my pxb with the opengis schemas and now I want to work with them.
I am trying to use the Literal() class of the filter module. I can create
the object, but I cannot seem to set its value.
I have tried several methods:
import pyxb.bundles.opengis.filter as ogc_filter
lit = ogc_filter.Literal()
lit.value = 'hello' # raises ReservedNameError
lit.content = 'hello' # raises ReservedNameError
lit.append('hello')
lit.value() # raises NotSimpleContentError
I am a newcomer to pyxb and haven't managed to make most of the
documentation yet so I assum I am using the wrong way here.
So how would I go about populating my Literal with a value? It seems I have
to create some complexTypeContent and then feed it to my object...
Help
--
___________________________ ___ __
Ricardo Garcia Silva
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
pyxb-users mailing list
pyxb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyxb-users