"DARRIGUES Bruno RD-MAPS-ISS" <[EMAIL PROTECTED]> wrote on 02/05/2007 06:38:05 AM:
> Hi , > I have a some trouble with a use case. I get in response from an > http request an xml string wich contain a URL for a further request. > My problem is that URL contain 2 parameters for a servlet and the > parameter separator caracter is '&' (eg: session-uri=http: > //localhost:8080/CallTo/hangup?sasID=1&sessionID=2) > This kind of Url rise an Exception with DOM parse function (due to > the &), if i replace '&' by '&' it is OK so here my existential question : > Is it a bug parser as & is inside a string delimited by " " ? > As my xml String response could be returned to a webservice (and > don't have this problem as it be serialized), how can i manage the > compatibility between DOM and Serialisation ? > I join my code unit. The document isn't well-formed [1]. I suspect that whomever is sending it to you isn't using a real XML serializer. Ampersand (&) needs to be escaped (as you've already discovered). > Thanks > > Bruno > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] [1] http://www.w3.org/TR/2006/REC-xml-20060816/#dt-wellformed Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]