|
 |
asptoday_discuss thread: Reserved characters within XML
Message #1 by "Marc Gerits" <e.eck@w...> on Fri, 30 Nov 2001 09:06:12
|
|
We have following application;
A client does a soap request to a server using xmlhttp.
At the server the soap request is received and build it's answer from a
XML file using XMLDOM. Problems arise at the moment a reserved character
is present in the XML file (e.g. & or <). XMLDOM internally translates the
entities to UTF-16 (I guess) at the moment a XML file is read-in.
After sending the answer back to the client it's not valid XML any more
because of lost of the entities.
How to solve this ????
Message #2 by "Jason Salas" <jason@k...> on Fri, 30 Nov 2001 21:34:43 +1000
|
|
Can you employ Regular Expressions to find and replace the values of XML's
reserved characters?
HTH,
Jason
----- Original Message -----
From: "Marc Gerits" <e.eck@w...>
To: "ASPToday Discuss" <asptoday_discuss@p...>
Sent: Friday, November 30, 2001 9:06 AM
Subject: [asptoday_discuss] Reserved characters within XML
> We have following application;
>
> A client does a soap request to a server using xmlhttp.
> At the server the soap request is received and build it's answer from a
> XML file using XMLDOM. Problems arise at the moment a reserved character
> is present in the XML file (e.g. & or <). XMLDOM internally translates the
> entities to UTF-16 (I guess) at the moment a XML file is read-in.
> After sending the answer back to the client it's not valid XML any more
> because of lost of the entities.
>
> How to solve this ????
>
$subst('Email.Unsub')
> Read the future with ebooks at B&N
>
http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38934667&categoryid
=rn_ebooks
>
Message #3 by "Marc Gerits" <e.eck@w...> on Fri, 30 Nov 2001 14:06:40
|
|
Thanks but ..
Sounds not easy because the 5 reserved chars are & > < ! " ' and I'am not
such a rock in regular expressions. So how should I solve this ..?
By the way, is my problem not a known problem?
Greetings Marc
> Can you employ Regular Expressions to find and replace the values of
XML's
> reserved characters?
>
> HTH,
> Jason
>
>
> ----- Original Message -----
> From: "Marc Gerits" <e.eck@w...>
> To: "ASPToday Discuss" <asptoday_discuss@p...>
> Sent: Friday, November 30, 2001 9:06 AM
> Subject: [asptoday_discuss] Reserved characters within XML
>
>
> > We have following application;
> >
> > A client does a soap request to a server using xmlhttp.
> > At the server the soap request is received and build it's answer from a
> > XML file using XMLDOM. Problems arise at the moment a reserved
character
> > is present in the XML file (e.g. & or <). XMLDOM internally translates
the
> > entities to UTF-16 (I guess) at the moment a XML file is read-in.
> > After sending the answer back to the client it's not valid XML any more
> > because of lost of the entities.
> >
> > How to solve this ????
> >
> $subst('Email.Unsub')
> > Read the future with ebooks at B&N
> >
> http://service.bfast.com/bfast/click?
bfmid=2181&sourceid=38934667&categoryid
> =rn_ebooks
> >
>
|
|
 |