XML to JavaScript parser using XML Schema to guide conversion