Hi Dave,
Here I am again - internally I cannot get the previous problem solved
(various xsd declarations of the same type of element) -sigh-. Some
developers say that the time-effort versus the gain is too low... -sighs
again-
Anyhow; I ran into another quark in our code. It seems that we made some
workarounds for getting various elements from our response xml - which all
appear to be <xs:simpleType>'s.
What is your recommendation to get this information from the model?
Below is what I did:
Generated model from xsd; where there are a few simpleType's -> for example
for <Version>x.y</Version>. (I used GenerateDS-2.12b)
Parsed the xml into the model - and find out that [code]rootTag, rootClass
= self.model.get_root_tag(rootNode)[/code] returns [code]Version, None[/code].
Where I hoped it would return something like str...
What I did find is the following:
if rootClass is None:
rootTag = 'Version'
rootClass = xs_string
- but the last line throws a 'NameError: name 'xs_string' is not defined'
at me...
I might be able to send you the xsd - when needed.
Best,
Mikki Weesenaar
The Netherlands
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works.
Faster operations. Version large binaries. Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users