User Activity

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

    Hello Peter, Thank you so much! It works. Now, I understand how to handles the unbounded number of elements. Thank you for your great help and time again!!!

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

    GenderValue part of the schema is <xs:element name="Person"> <xs:complexType> <xs:sequence> <xs:element ref="GenderDetails" minOccurs="0"/> <xs:element ref="ActiveStatusDetails" minOccurs="0"/> <xs:element ref="DeceasedDetails" minOccurs="0"/> <xs:element ref="PersonNameDetails" minOccurs="0"/> <xs:element ref="Descriptions"/> <xs:element ref="DateDetails" minOccurs="0"/> <xs:element ref="BirthPlaceDetails" minOccurs="0"/> <xs:element ref="SanctionsReferences" minOccurs="0"/> <xs:element ref="AddressDetails"...

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

    Hello Peter, Thank you for reply. I reivsed the code using code tag. I first time use the sourceforge, so I did the mistake when I posted the code. I hope the revised one is much better to read. I validated the the xml file using xsd, so the xml file is ok with the schema. The max occurance is 1. I have two questions. Is my code the rigth way to access the grandchild elemenet if the xml and xsd are correct? Is there other way to access it? person.GenderDetails.Gender.GenderValue Could you explain...

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

    My service provider gave me data using XML and XSD files and I'm trying to parse this data using PYXB library in Python. I can access the root and child elements and attributes except for the grandchild element. I'd like to know how I can access the value of grandchild element(GenderValue). Here is a part of xml file: <Person id="10441" recordaction="add" date="10-Jul-2018"> <GenderDetails> <Gender> <ReferenceGroup ReferenceGroupCode="DJ"/> <GenderValue>Male</GenderValue> </Gender> </GenderDetails>...

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

    My service provider gave me data using XML and XSD files and I'm trying to parse this data using PYXB library in Python. I can access the root and child elements and attributes except for the grandchild element. I'd like to know how I can access the value of grandchild element(GenderValue). Here is a part of xml file: <person date="10-Jul-2018" recordaction="add" id="10441"> <genderdetails> <gender> <referencegroup referencegroupcode="DJ"> <gendervalue>Male</gendervalue> </referencegroup></gender>...

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

    My service provider gave me data using XML and XSD files and I'm trying to parse this data using PYXB library in Python. I can access the root and child elements and attributes except for the grandchild element. I'd like to know how I can access the value of grandchild element(GenderValue). Here is a part of xml file: <person date="10-Jul-2018" recordaction="add" id="10441"> <genderdetails> <gender> <referencegroup referencegroupcode="DJ"> <gendervalue>Male</gendervalue> </referencegroup></gender>...

View All

Personal Data

Username:
komunamu
Joined:
2018-11-07 19:09:49

Projects

  • No projects to display.

Personal Tools