473,473 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 1625
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.