# XML schema question

**URL:** <https://forum.kirupa.com/t/xml-schema-question/329499>\
**Category:** programming\
**Created:** [September 6, 2012, 3:37pm UTC](https://forum.kirupa.com/t/xml-schema-question/329499 "2012-09-06T15:37:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dragonfly](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dragonfly](https://forum.kirupa.com/u/dragonfly)\
**Post date:** [September 6, 2012, 3:37pm UTC](https://forum.kirupa.com/t/xml-schema-question/329499/1 "2012-09-06T15:37:52Z")

</div>

Hello. I am trying to code a web app in php that will parse and display weather from NOAA’s xml feed.

The above is a specific example but my question is broader. What if the source of the XML decides to change the structure of the XML and all of the programs I have floating around that use this XML break?

Is there a way to protect against this using the schema document? I understand what XSD files are and what they describe, but is there a way to use them to protect against the above scenario?
