User Activity

  • Posted a comment on discussion Help on PyXB: Python XML Schema Bindings

    I was wondering if it is possible to assign value to Target using pyxb.BIND or some thing similar by creating a temporary XML object.

  • Modified a comment on discussion Help on PyXB: Python XML Schema Bindings

    It works with the attached code. However I would like to know if it possible to XML can have selected attributes pinted. With the attachecd code xml looks like: <location xmlns:ns2="http://www.nokia.com/SURE/Location" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="http://www.nokia.com/SURE/CommonModel"> <ns1:surename>locationSureName</ns1:surename> <ns1:type>INFRASTRUCTURE</ns1:type> <ns2:latitude>234.23</ns2:latitude> <ns2:longitude>123.12</ns2:longitude> <ns2:associations> <ns2:association>...

  • Modified a comment on discussion Help on PyXB: Python XML Schema Bindings

    It works with the attached code. However I would like to know if it possible to XML can have selected attributes pinted. With the attachecd code xml looks like: <location xmlns:ns2="http://www.nokia.com/SURE/Location" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="http://www.nokia.com/SURE/CommonModel"> <ns1:surename>locationSureName</ns1:surename> <ns1:type>INFRASTRUCTURE</ns1:type> <ns2:latitude>234.23</ns2:latitude> <ns2:longitude>123.12</ns2:longitude> <ns2:associations> <ns2:association>...

  • Modified a comment on discussion Help on PyXB: Python XML Schema Bindings

    Need some help here on how to assign value to abstract type.

  • Posted a comment on discussion Help on PyXB: Python XML Schema Bindings

    I think there is some issue with schema the way abstract is used, working on fixing it.

  • Modified a comment on discussion Help on PyXB: Python XML Schema Bindings

    Attaching the schema where Target type is defined as abstract type in CommonSUREModelTypes.xsd and is being used in Location.xsd. Lets say I want to assign Target to another instance to Location. Attaching xsd and python example code. The excetpion I get is pyxb.exceptions_.SimplePluralValueError: Type {http://www.nokia.com/SURE/CommonModel}Target cannot be created from {http://www.nokia.com/SURE/Location}Location: <com.nokia.oss.sure.location.location_ object="" at="" 0x000001b0f8b3b4e0=""></co...

  • Modified a comment on discussion Help on PyXB: Python XML Schema Bindings

    Attaching the schema where Target type is defined as abstract type in CommonSUREModelTypes.xsd and is being used in Location.xsd. Lets say I want to assign Target to another instance to Location. Attaching xsd and python example code

  • Modified a comment on discussion Help on PyXB: Python XML Schema Bindings

    Attaching the schema where Target type is defined as abstract type in CommonSUREModelTypes.xsd and is being used in Location.xsd. Lets say I want to assign Target to another instance to Location. Attaching xsd and python example code

View All

Personal Data

Username:
saurabh29
Joined:
2019-02-01 04:26:26

Projects

  • No projects to display.

Personal Tools