implemented basic xml reader (suitable for namespaced and not namespaced schema.xml files :-)) - thanks to "o reilly's php cookbook"