More refactoring of XML parsing
Minor bug fix (LayoutParserStandalone.parseScriptElement())