none
How do I find the data type for a given element in an XML hierarchy? RRS feed

Answers

All replies

  • Did you download the mentioned https://graphical.weather.gov/xml/DWMLgen/schema/DWML.xsd, and also all of the linked definitions that appear in <xsd:include> directives, for further examination? You will find that <creation-date> is an extension of xsd:dateTime.

    Monday, November 18, 2019 5:42 PM
  • As Viorel_ said, the https://graphical.weather.gov/xml/DWMLgen/schema/DWML.xsd file includes the the https://graphical.weather.gov/xml/DWMLgen/schema/meta_data.xsd schema reference, in this schema content, we can see the <creation-date> is based on datetime type.

    • Marked as answer by ToolTimeTabor Tuesday, November 19, 2019 3:58 PM
    Tuesday, November 19, 2019 6:21 AM
  • Thanks to both!

    I did not realize that the include file was the key to the problem.

    So, is there a way to somehow extract that datatype without having to manually download those files and figuring it out through manually tracing the data?  Is there a "Xml" object in System.Xml that you can pass the DWML.xsd file into and then query it for the <creation-date> type?


    Tuesday, November 19, 2019 3:59 PM