You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this case the xsdgen package is behaving as intended. This is a type declaration, and in the schema, the type name is fsx:RootType. I'm open to discussing whether this is desired behavior. Currently, the xsd package totally ignores top-level elements and attributes, and just searches them for type declaration. Honestly I don't quite know what to do with top-level element declarations in an xml schema.
For this specific instance, you can get what you want like this:
From the xsd specification http://www.fdsn.org/xml/station/fdsn-station-1.0.xsd, the "Root element" defined:
Which means the root element struct name should be "FDSNStationXML", e.g.:
However, currently xsdgen's output is:
This problem only happens in the root element.
The text was updated successfully, but these errors were encountered: