added check for namespace attribute on parse, fixes #30