I followed the examples and suggestions of handling namespaces to read in an xml file. However, I am unable to resolve the issue. Below is the code I am using to generate the Classes and subclasses
python generateDS.py -a "gml:" -o gmx_codelists.py -s gmx_codelists_app.py gmxCodelists.xml
The error is as follows:
AttributeError: 'NoneType' object has no attribute 'annotate'
I am attaching the xml file here. I performed a similar conversion from an xsd Catalog file and that worked properly. Can someone suggest a solution as how to get the output out of this xml file?
I followed the examples and suggestions of handling namespaces to read in an xml file. However, I am unable to resolve the issue. Below is the code I am using to generate the Classes and subclasses
The error is as follows:
AttributeError: 'NoneType' object has no attribute 'annotate'
I am attaching the xml file here. I performed a similar conversion from an xsd Catalog file and that worked properly. Can someone suggest a solution as how to get the output out of this xml file?
Thanks in advance!
Last edit: Ashim Giyanani 2022-11-02