473,394 Members | 1,778 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,394 software developers and data experts.

XML and & character as data

Hello,

I have a XML file using Iso 8859-1 encoding.
Every time when I try to put & character as Tag's value
XMLDocument Reader throws Exception.

How should I code & character as an ordinary data character
in XML file?

Cheers!
Apr 17 '06 #1
2 1285


BenI wrote:

How should I code & character as an ordinary data character
in XML file?


Escaped as & (& a m p ; for web interface readers).
--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Apr 17 '06 #2
* BenI wrote:
Hello,

I have a XML file using Iso 8859-1 encoding.
Every time when I try to put & character as Tag's value
XMLDocument Reader throws Exception.

How should I code & character as an ordinary data character
in XML file?


use &

see http://www.w3.org/MarkUp/html3/latin1.html
Apr 19 '06 #3

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

Similar topics

3
by: wenke | last post by:
Hi, I am using the following code (see below) from php.net (http://www.php.net/manual/en/ref.xml.php, example 1) to parse an XML file (encoded in UTF-8). I changed the code slightly so that the...
6
by: Rich Wallace | last post by:
All, I receive an xml doc with an element which contains a & in the data. I am attempting to insert the data into a SQL Server database and I want to convert the & to a "&" character before I...
6
by: Fan Ruo Xin | last post by:
I try to copy a table from production system (DB2 UDB EEE V7.2 + fixpak5) to the testing system (DB2 UDB V8.1 + fixpak4a). I moved the data from productions system by using the following steps:...
33
by: Merrill & Michele | last post by:
Section 2.3 of K&R enumerates the complete set of escape sequences. Q1) Is it possible to ask the following question without getting into implementation/platform talk? Q2) What on earth is...
7
by: Sascha Schmidt | last post by:
Hello ! I have a little problem accessing a Visual Foxpro-database using ODBC (Driver 6.00.8167) (using System.Data.Odbc). Reading a column, defined in the Foxpro table definition as a kind of...
11
by: Jeremy | last post by:
How can one stop a browser from converting & to & ? We have a textarea in our system wehre a user can type in some html code and have it saved to the database. When the data is retireved...
11
by: BenI | last post by:
Hello, I have a XML file using Iso 8859-1 encoding. Every time when I try to put & character as Tag's value like <tag>This is & character</tag> Exception is shown in my application. I use...
4
by: jamie | last post by:
My data may contain the characters < ,&, and > The system I'm sending them to wants them to be changed to < & and > respectivily. So I had gone into the data and was changing them over in the...
7
by: Taras_96 | last post by:
Hi all, I was hoping to get some clarification on a couple of questions I have: 1) When should htmlspecial characters be used? As a general rule should it be used for text that may contain...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
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...

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.