XML Structures:

How do we check if we have well defined structure?