473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

XML Reading "&" Error

Hi,

I have an xml file that is written and it writes the & like "&", without
the quotes. When I go to read it back in, it reads it as "&" instead of "&"
which is what I need. How would I go about doing this?

Thanks,

Renzska
Jul 21 '05 #1
4 1622
I just used a temporary string and did a regex.replace to fix this issue, but
I am still wondering if there is a way without having to do that.

Thanks,

Renzska

"Renzska" wrote:
Hi,

I have an xml file that is written and it writes the & like "&", without
the quotes. When I go to read it back in, it reads it as "&" instead of "&"
which is what I need. How would I go about doing this?

Thanks,

Renzska

Jul 21 '05 #2
Not familiar but should't quotes be encoded as well ?

Patrice

--

"Renzska" <Re*****@discussions.microsoft.com> a écrit dans le message de
news:E1**********************************@microsof t.com...
Hi,

I have an xml file that is written and it writes the & like "&amp;", without the quotes. When I go to read it back in, it reads it as "&" instead of "&" which is what I need. How would I go about doing this?

Thanks,

Renzska

Jul 21 '05 #3

"Renzska" <Re*****@discussions.microsoft.com> wrote in message
news:E1**********************************@microsof t.com...
Hi,

I have an xml file that is written and it writes the & like "&amp;", without the quotes. When I go to read it back in, it reads it as "&" instead of "&" which is what I need. How would I go about doing this?

Thanks,

Renzska

You might also look into cdata as in

<xmlitemname><![CDATA[Some text & some more text]]></xmlitemname>

mike
Jul 21 '05 #4
The quotes were to signify what was contained in the xml file.

I've got it working now though so we can consider this question resolved.

Thanks,

Renzska

"Renzska" wrote:
Hi,

I have an xml file that is written and it writes the & like "&", without
the quotes. When I go to read it back in, it reads it as "&" instead of "&"
which is what I need. How would I go about doing this?

Thanks,

Renzska

Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

23
by: ian justice | last post by:
Before i post actual code, as i need a speedyish reply. Can i first ask if anyone knows off the top of their head, if there is a likely obvious cause to the following problem. For the moment i've...
3
by: 21novembre | last post by:
Hi all, I made a question several days before to describe my strange trouble of mysqldump. But I still can't figour it out. Well, I just want to ask another question whether I could just backup...
4
by: barney | last post by:
Hello, I' m using .NET System.Xml.XmlDOcument. When I do the following: XmlDocument xml = new XmlDocument(); xml.Load("blah"); .... xml.Save("blub"); I've got the problem that the following...
2
by: kma | last post by:
I am designing an Access 2000 database on a computer running Windows 98. I have one form with several tabs; all of which have sub forms, some with a subform on a subform. For example, on my...
5
by: martin | last post by:
Hi, I would be extremly grateful for some help on producing an xml fragemt. The fragment that I wish to produce should look like this <Addresses> <Address>&qout;Somebody's Name&quot;...
4
by: Renzska | last post by:
Hi, I have an xml file that is written and it writes the & like "&amp;", without the quotes. When I go to read it back in, it reads it as "&" instead of "&" which is what I need. How would I go...
14
by: Arne | last post by:
A lot of Firefox users I know, says they have problems with validation where the ampersand sign has to be written as &amp; to be valid. I don't have Firefox my self and don't wont to install it only...
3
by: divya | last post by:
Hi, I have a table tblbwday with 2 fields Name and Birthday.I have written this script for displaying evryday names of the people on that day. <% set objConn...
13
by: Ragnar | last post by:
Hi, 2 issues left with my tidy-work: 1) Tidy transforms a "&amp;" in the source-xml into a "&" in the tidied version. My XML-Importer cannot handle it 2) in a long <title>-string a wrap is...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.