471,627 Members | 1,163 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,627 software developers and data experts.

Unusual characters in XML document cause xml load problem

Joe
Hi,

I want to save some URLs into a XML formatted document.

I find out that its having some problems due to some of the characters used
in the URL.

Is there a quick way to get around that? Thanks.

Here are some of the URL characters in the parameters

www.site.com/='N+Ss+Volume'&sym=

http://www2.site.com/

http://www.site.com/.?scanType=all_s...ange=all_&x=14
Feb 5 '06 #1
2 1540
Joe
Are there any easy to use prewritten code to take care of this (the special
characters used in the URL I need to store in the XML formatted are causing
load and read problems with the XMLdocument object)?


"Joe" <jo*******@yahoo.com> wrote in message
news:uK*************@TK2MSFTNGP15.phx.gbl...
Hi,

I want to save some URLs into a XML formatted document.

I find out that its having some problems due to some of the characters
used
in the URL.

Is there a quick way to get around that? Thanks.

Here are some of the URL characters in the parameters

www.site.com/='N+Ss+Volume'&sym=

http://www2.site.com/

http://www.site.com/.?scanType=all_s...ange=all_&x=14

Feb 5 '06 #2
Joe,

You can encode the characters, using HTML encoding.

Or, you can place the data in a CDATA section.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Joe" <jo*******@yahoo.com> wrote in message
news:uK*************@TK2MSFTNGP15.phx.gbl...
Hi,

I want to save some URLs into a XML formatted document.

I find out that its having some problems due to some of the characters
used
in the URL.

Is there a quick way to get around that? Thanks.

Here are some of the URL characters in the parameters

www.site.com/='N+Ss+Volume'&sym=

http://www2.site.com/

http://www.site.com/.?scanType=all_s...ange=all_&x=14

Feb 5 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Ken Tuck | last post: by
7 posts views Thread by Nadav | last post: by
7 posts views Thread by Trac Bannon | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.