joe.edwards:
More Correct Example:
<?xml version="1.0" encoding="UTF-8"?>
<includes xmlns="http://forums.thedailywtf.com/xml/includes">
<include type="header">shellapi.h</include>
</includes>
Ah, ah, but this doesn't even has a schema... how are you supposed to validate it?
Also, in case you wanted to extend the "type" attribute, how would you avoid name collisions?
Obviously, the correct example is:
<includes
xmlns = "http://forums.thedailywtf.com/xml/includes"
xmlns:cinc = "http://forums.thedailywtf.com/xml/C-include-types"
xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation = "http://forums.thedailywtf.com/xml/includes http://forums.thedailywtf.com/xml/includes.xsd"
>
<include type="cinc:header">shellapi.h</include>
</includes>