I need to add the following namespaces to my XSD document:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="catalog.enterprise.level3.com" attributeFormDefault="unqualified">
When I try to add the target namespace, it complains of a MalformedURIException, which I assume is because there is no http:// in the namespace URI. I am using XOM for this.
Element rootWriter;
rootWriter.addNamespaceDeclaration("tns","catalog.enterprise.level3.com");
Could someone please suggest to me, how to solve this problem.