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...
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 -b 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...