Boisvert, Éric wrote:
gee thanks for the fix. being a defensive programmer , I changed the code
to
private String GetXmlRequest(Document doc)
{
String req = this.DomToString(doc);
if (req.indexOf("xmlns") == -1)
{
// not namespace declaration found
Node n = doc.getFirstChild();
req.replaceFirst(n.getLocalName(),n.getLocalName() + " " + ns);
}
else
return req;
}
Seems like you probably don't want the "else". As is, you should get a
compilation error because GetXmlRequest() will not return anything when
the if condition is true.
Lars
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]