Ported XMLpatch system to the new XML system
Removed code for legacy XML system from XMLpatch subsystem
Minor XML-related fixes and additions
GUI doctype files are now read using the new XML subsystem