The type of the targetNamespace attribute is xs:anyURI. The xs:anyURI type [1] allows many characters (which are not allowed in vanilla URIs) without requiring escaping. However, there are still many classes of strings which are not valid xs:anyURI values.
Thanks. [1] http://www.w3.org/TR/xmlschema-2/#anyURI Michael Glavassevich XML Technologies and WAS Development IBM Toronto Lab E-mail: mrgla...@ca.ibm.com E-mail: mrgla...@apache.org kesh...@us.ibm.com wrote on 15/05/2012 02:36:19 PM: > From: kesh...@us.ibm.com > To: j-users@xerces.apache.org, > Date: 15/05/2012 02:37 PM > Subject: Re: AW: Error Parsing xml document > > > in your XML-Documet change //$xrd*($v*2.0) to a valid URI > > Websearching for "URI RFC" will find the formal specification for > URIs, including the grammar that defines what is and isn't legal; > namespace names must meet the syntactic constraints of URI > References. You may have to escape some characters (and your tool > may have to be able to handle escaped characters) if you really need > to pass that sort of information through your namespace names. > > Also note, while I'm writing, that per the XML Namespaces Recommendation " > The empty string, though it is a legal URI reference, cannot be used > as a namespace name. The use of relative URI references, including > same-document references, in namespace declarations is deprecated. "