Hi,

I have three master schemas that I have to use to deserialize the objects.
My question is: Is it possible to combine these schemas in one object so I
can use that object to deserialize all types of objects. In JAXB I can
define a Context that includes several namespaces and I can use that
Context to deserialize all types of objects.
But with pyxb I have several files that I need to import and use them
separately to deserialize different objects.
I could have something like:
import master1, master2

try:
    return master1.CreateFromDOM(domutils.StringToDOM(r))
except:
    try:
        return master2.CreateFromDOM(domutils.StringToDOM(r))
    except:
        return None


But I was wondering if I can just put everything in one big py file, import
it and use it.
Currently I run pyxbgen once to generate everything and I put my master
schemas first in the parameter list and then the rest of the schemas (-u
<path> -m <module>). The command generates several modules starting with _
and three other modules that start with a character (not _) - these three I
need to import and use.
Should I define my own schema that includes the three master schemas and
generate the bindings again to achieve what I need?

Regards,
Vladimir
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
pyxb-users mailing list
pyxb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyxb-users

Reply via email to