--- /dev/null
+pyxbgen -u modele_atmo.xsd -m atmo --write-for-customization
+/local/PyXB-1.2.6/scripts/pyxbgen -u modele_atmo.xsd -m atmo --write-for-customization
+/local/PyXB-1.2.6/scripts/pyxbgen -u model_atmo_ext.xsd -m atmo_ext --write-for-customization
+
+
+/local/PyXB-1.2.6/scripts/pyxbgen -u modele_atmo.xsd -m atmo --write-for-customization --default-namespace-public --archive-to-file=model_atmo.wxsd
+/local/PyXB-1.2.6/scripts/pyxbgen -u model_atmo_ext.xsd -m atmo_ext --write-for-customization --archive-path=.:+
--- /dev/null
+# -*- coding: utf-8 -*-
+from raw.atmo import *
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--Sample XML file generated by XMLSpy v2015 rel. 4 (http://www.altova.com)-->\r
+<cata efficas:nom="Atmo" xmlns="http://chercheurs.edf.com/logiciels/efficas" xmlns:efficas="http://chercheurs.edf.com/logiciels/efficas" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://chercheurs.edf.com/logiciels/efficas ../Efi2Xsd/ModeleEficas/Model%20Efficas%20(1.1)%20%20v9.xsd">\r
+<commandes>\r
+\r
+<PROC efficas:nom="Atmos">\r
+<doc efficas:fr="Définition d'un cas d'étude atmosphérique" efficas:ang="Definition of study case"></doc>\r
+ <FACT efficas:nom="Wind">\r
+ <SIMP efficas:nom="Wind_Speed">\r
+ <nomTypeAttendu>I</nomTypeAttendu>\r
+ </SIMP>\r
+ <SIMP efficas:nom="Speed_Unit">\r
+ <plageValeur><into><TXM>knots</TXM></into><into><TXM>mph</TXM></into><into><TXM>m/s</TXM></into></plageValeur>\r
+ <nomTypeAttendu>TXM</nomTypeAttendu>\r
+ </SIMP>\r
+ <SIMP efficas:nom="Measurement">\r
+ <plageValeur><into><TXM>manual</TXM></into><into><TXM>typeA</TXM></into><into><TXM>typeB</TXM></into></plageValeur> \r
+ <nomTypeAttendu>TXM</nomTypeAttendu>\r
+ </SIMP>\r
+ <BLOC efficas:nom="B_enter_mesure">\r
+ <SIMP efficas:nom="Value">\r
+ <nomTypeAttendu>I</nomTypeAttendu>\r
+ </SIMP>\r
+ <SIMP efficas:nom="Unit">\r
+ <plageValeur><into><TXM>feet</TXM></into><into><TXM>meters</TXM></into></plageValeur>\r
+ <nomTypeAttendu>TXM</nomTypeAttendu>\r
+ </SIMP>\r
+ <condition>Measurement == 'manual'</condition>\r
+ </BLOC>\r
+ </FACT>\r
+ <FACT efficas:nom="Ground">\r
+ <SIMP efficas:nom="Ground_roughness">\r
+ <plageValeur><into><TXM>open country</TXM></into><into><TXM>urban or forest</TXM></into><into><TXM>open water</TXM></into><into><TXM>manual</TXM></into></plageValeur>\r
+ <nomTypeAttendu>TXM</nomTypeAttendu>\r
+ </SIMP>\r
+ <BLOC efficas:nom="B_enter_ground">\r
+ <SIMP efficas:nom="Value">\r
+ <nomTypeAttendu>I</nomTypeAttendu>\r
+ </SIMP>\r
+ <SIMP efficas:nom="Unit">\r
+ <valeurDef><TXM>cm</TXM></valeurDef>\r
+ <plageValeur><into><TXM>in</TXM></into><into><TXM>cm</TXM></into></plageValeur>\r
+ <nomTypeAttendu>TXM</nomTypeAttendu>\r
+ </SIMP>\r
+ <condition>Ground_roughness == 'manual'</condition>\r
+ </BLOC>\r
+ </FACT>\r
+ <FACT efficas:nom="Cover">\r
+ <SIMP efficas:nom="Cover_type">\r
+ <plageValeur><into><TXM>clear</TXM></into><into><TXM>partly clouded</TXM></into><into><TXM>overclouded</TXM></into><into><TXM>manual</TXM></into></plageValeur>\r
+ <nomTypeAttendu>TXM</nomTypeAttendu>\r
+ </SIMP>\r
+ <BLOC efficas:nom="B_enter_cover">\r
+ <SIMP efficas:nom="Value">\r
+ <plageValeur><borneSup><typesimple>10</typesimple></borneSup></plageValeur>\r
+ <nomTypeAttendu>I</nomTypeAttendu>\r
+ </SIMP>\r
+ <condition>Cover_type == 'manual'</condition>\r
+ </BLOC>\r
+ </FACT>\r
+</PROC>\r
+</commandes>\r
+</cata>\r
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--Sample XML file generated by XMLSpy v2015 rel. 4 (http://www.altova.com)-->\r
+<cata efficas:nom="Atmo" xmlns="http://chercheurs.edf.com/logiciels/efficas" xmlns:efficas="http://chercheurs.edf.com/logiciels/efficas" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://chercheurs.edf.com/logiciels/efficas ../Efi2Xsd/ModeleEficas/Model%20Efficas%20(1.1)%20%20v9.xsd">\r
+<commandes>\r
+\r
+<PROC efficas:nom="Atmos">\r
+<doc efficas:fr="Définition d'un cas d'étude atmosphérique" efficas:ang="Definition of study case"></doc>\r
+ <FACT efficas:nom="Wind">\r
+ <SIMP efficas:nom="Wind_Speed">\r
+ <nomTypeAttendu>I</nomTypeAttendu>\r
+ </SIMP>\r
+ <SIMP efficas:nom="Speed_Unit">\r
+ <plageValeur><into><TXM>knots</TXM></into><into><TXM>mph</TXM></into><into><TXM>m/s</TXM></into></plageValeur>\r
+ <nomTypeAttendu>TXM</nomTypeAttendu>\r
+ </SIMP>\r
+ <SIMP efficas:nom="Measurement">\r
+ <plageValeur><into><TXM>manual</TXM></into><into><TXM>typeA</TXM></into><into><TXM>typeB</TXM></into></plageValeur> \r
+ <nomTypeAttendu>TXM</nomTypeAttendu>\r
+ </SIMP>\r
+ <FACT efficas:nom="B_enter_mesure">\r
+ <SIMP efficas:nom="Value">\r
+ <nomTypeAttendu>I</nomTypeAttendu>\r
+ </SIMP>\r
+ <SIMP efficas:nom="Unit">\r
+ <plageValeur><into><TXM>feet</TXM></into><into><TXM>meters</TXM></into></plageValeur>\r
+ <nomTypeAttendu>TXM</nomTypeAttendu>\r
+ </SIMP>\r
+ </FACT>\r
+ </FACT>\r
+ <FACT efficas:nom="Ground">\r
+ <SIMP efficas:nom="Ground_roughness">\r
+ <plageValeur><into><TXM>open country</TXM></into><into><TXM>urban or forest</TXM></into><into><TXM>open water</TXM></into><into><TXM>manual</TXM></into></plageValeur>\r
+ <nomTypeAttendu>TXM</nomTypeAttendu>\r
+ </SIMP>\r
+ <FACT efficas:nom="B_enter_ground">\r
+ <SIMP efficas:nom="Value">\r
+ <nomTypeAttendu>I</nomTypeAttendu>\r
+ </SIMP>\r
+ <SIMP efficas:nom="Unit">\r
+ <valeurDef><TXM>cm</TXM></valeurDef>\r
+ <plageValeur><into><TXM>in</TXM></into><into><TXM>cm</TXM></into></plageValeur>\r
+ <nomTypeAttendu>TXM</nomTypeAttendu>\r
+ </SIMP>\r
+ </FACT>\r
+ </FACT>\r
+ <FACT efficas:nom="Cover">\r
+ <SIMP efficas:nom="Cover_type">\r
+ <plageValeur><into><TXM>clear</TXM></into><into><TXM>partly clouded</TXM></into><into><TXM>overclouded</TXM></into><into><TXM>manual</TXM></into></plageValeur>\r
+ <nomTypeAttendu>TXM</nomTypeAttendu>\r
+ </SIMP>\r
+ <FACT efficas:nom="B_enter_cover">\r
+ <SIMP efficas:nom="Value">\r
+ <plageValeur><borneSup><typesimple>10</typesimple></borneSup></plageValeur>\r
+ <nomTypeAttendu>I</nomTypeAttendu>\r
+ </SIMP>\r
+ </FACT>\r
+ </FACT>\r
+</PROC>\r
+</commandes>\r
+</cata>\r
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--Sample XML file generated by XMLSpy v2015 rel. 4 (http://www.altova.com)-->\r
+<Atmos xmlns="http://chercheurs.edf.com/logiciels/atmos" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://chercheurs.edf.com/logiciels/atmos modele_atmo.xsd">\r
+ <Wind>\r
+ <Wind_Speed>20</Wind_Speed>\r
+ <Speed_Unit>mph</Speed_Unit>\r
+ <Measurement>manual</Measurement>\r
+ <B_enter_mesure>\r
+ <Value>10</Value>\r
+ <Unit>meters</Unit>\r
+ </B_enter_mesure>\r
+ </Wind>\r
+ <Ground>\r
+ <Ground_roughness>manual</Ground_roughness>\r
+ <B_enter_ground>\r
+ <Value>30</Value>\r
+ <Unit>cm</Unit>\r
+ </B_enter_ground>\r
+ </Ground>\r
+ <Cover>\r
+ <Cover_type>clear</Cover_type>\r
+ </Cover>\r
+</Atmos>\r
--- /dev/null
+from atmo import *
+
+myatmo=CreateFromDocument(open('./ex_jdc.xml').read())
+myatmo.toxml()
+
+print myatmo.toDOM().toprettyxml()
+print myatmo.Wind.Wind_Speed
+
+myWind=myatmo.Wind
+myWind.Wind_Speed=50
+myatmo.Wind=myWind
+print myatmo.toDOM().toprettyxml()
+
+file=open('./ex_jdc_bis.xml','w');file.write(myatmo.toxml());file.close()
+myatmobis=CreateFromDocument(open('./ex_jdc_bis.xml').read())
+print myatmobis.toDOM().toprettyxml()
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- edited with XMLSpy v2015 rel. 4 (http://www.altova.com) by USER1 (EDF-DSP) -->
+<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:atmos="http://chercheurs.edf.com/logiciels/atmos" targetNamespace="http://chercheurs.edf.com/logiciels/atmos" elementFormDefault="qualified" attributeFormDefault="qualified">
+ <simpleType name="T_Wind_Speed">
+ <restriction base="int"/>
+ </simpleType>
+ <simpleType name="T_Speed_Unit">
+ <restriction base="string"/>
+ </simpleType>
+ <simpleType name="T_Measurement">
+ <restriction base="string"/>
+ </simpleType>
+ <simpleType name="T_Value">
+ <restriction base="int"/>
+ </simpleType>
+ <simpleType name="T_Ground_roughness">
+ <restriction base="string"/>
+ </simpleType>
+ <simpleType name="T_Unit">
+ <restriction base="string"/>
+ </simpleType>
+ <simpleType name="T_Cover_type">
+ <restriction base="string"/>
+ </simpleType>
+ <complexType name="T_Atmos">
+ <sequence>
+ <element name="Wind" type="atmos:T_Wind" minOccurs="1" maxOccurs="1"/>
+ <element name="Ground" type="atmos:T_Ground" minOccurs="1" maxOccurs="1"/>
+ <element name="Cover" type="atmos:T_Cover" minOccurs="1" maxOccurs="1"/>
+ </sequence>
+ </complexType>
+ <complexType name="T_Wind">
+ <sequence>
+ <element name="Wind_Speed" type="atmos:T_Wind_Speed" minOccurs="1"/>
+ <element name="Speed_Unit" type="atmos:T_Speed_Unit" minOccurs="1"/>
+ <element name="Measurement" type="atmos:T_Measurement" minOccurs="1"/>
+ <element name="B_enter_mesure" type="atmos:T_B_enter_mesure" minOccurs="0" maxOccurs="1"/>
+ </sequence>
+ </complexType>
+ <complexType name="T_B_enter_mesure">
+ <sequence>
+ <element name="Value" type="atmos:T_Value" minOccurs="1"/>
+ <element name="Unit" type="atmos:T_Unit" minOccurs="1"/>
+ </sequence>
+ </complexType>
+ <complexType name="T_Ground">
+ <sequence>
+ <element name="Ground_roughness" type="atmos:T_Ground_roughness" minOccurs="1"/>
+ <element name="B_enter_ground" type="atmos:T_B_enter_ground" minOccurs="0" maxOccurs="1"/>
+ </sequence>
+ </complexType>
+ <complexType name="T_B_enter_ground">
+ <sequence>
+ <element name="Value" type="atmos:T_Value" minOccurs="1"/>
+ <element name="Unit" type="atmos:T_Unit" minOccurs="1"/>
+ </sequence>
+ </complexType>
+ <complexType name="T_Cover">
+ <sequence>
+ <element name="Cover_type" type="atmos:T_Cover_type" minOccurs="1"/>
+ <element name="B_enter_cover" type="atmos:T_B_enter_cover" minOccurs="0" maxOccurs="1"/>
+ </sequence>
+ </complexType>
+ <complexType name="T_B_enter_cover">
+ <sequence>
+ <element name="Value" type="atmos:T_Value" minOccurs="1"/>
+ </sequence>
+ </complexType>
+ <element name="Atmos" type="atmos:T_Atmos"/>
+</schema>