  | |  | Malformed URI in namespace declaration | Malformed URI in namespace declaration 2003-08-01 - By Jeremy Nix
I have run across a scenario dealing with a b2b application where a business is sending us an xml document that declares namespaces with invalid URI's. For example:
<xml xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema"> <s:Schema id="RowsetSchema">
Each time I try running the parser I get the following error: "MalformedUrLException: no protocol". Is there a way around disabling the mechanism that verifies that the namespace url is valid? I've tried setting various parser features, but I can't seem to get the parser to work around this issue. Any ideas?
_________________ Jeremy Nix Senior Application Developer Southwest Financial Ltd. Jeremy.Nix@(protected) (513) 621-6699 ext 1158
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6249.1"> <TITLE>Malformed URI in namespace declaration</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">I have run across a scenario dealing with a b2b application where a business is sending us an xml document that declares namespaces with invalid URI's. For example:</FONT></P>
<P><FONT SIZE=2 FACE="Arial"><xml xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3 -00AA00C14882" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882 " xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z=" #RowsetSchema"></FONT></P>
<P> <FONT SIZE=2 FACE="Arial"><s :Schema id="RowsetSchema"></FONT> </P>
<P><FONT SIZE=2 FACE="Arial">Each time I try running the parser I get the following error: "MalformedUrLException: no protocol". Is there a way around disabling the mechanism that verifies that the namespace url is valid? I've tried setting various parser features, but I can't seem to get the parser to work around this issue. Any ideas?</FONT></P>
<P><FONT FACE="Times New Roman">_________________</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">Jeremy Nix</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">Senior Application Developer</FONT>
<BR><FONT SIZE=2 FACE="Times New Roman">Southwest Financial Ltd.</FONT>
<BR><FONT SIZE=1 FACE="Times New Roman">Jeremy.Nix@(protected)<U></U></FONT><U>< /U>
<BR><FONT SIZE=1 FACE="Times New Roman">(513) 621-6699 ext 1158</FONT> </P>
</BODY> </HTML>
|
|
 |