473,403 Members | 2,338 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,403 software developers and data experts.

Inputting special characters inside xml

Hello,
How to input special characters inside xml like < (Less than) , >
(Greater than) as a text

Thanks,
Nov 16 '05 #1
7 2023
You encode < as &lt; and > as &gt;

But I get the feeling you already know that and its something else you are asking. Can you be more specific if the above doesn't give you what you want.

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<31**********************************@microsoft.co m>

Hello,
How to input special characters inside xml like < (Less than) , >
(Greater than) as a text

Thanks,

Nov 16 '05 #2
Hello,

I want to represent expression having >= and <= as text so that that
can be read in an dataset

Thanks,

"Richard Blewett [DevelopMentor]" wrote:
You encode < as < and > as >

But I get the feeling you already know that and its something else you are asking. Can you be more specific if the above doesn't give you what you want.

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<31**********************************@microsoft.co m>

Hello,
How to input special characters inside xml like < (Less than) , >
(Greater than) as a text

Thanks,

Nov 16 '05 #3
Well, looking at my post it has nicely translated my encodings into the < and > sign <sigh>. OK here are the encodings, but I'll put spaces between so you can read them

< = & l t ;
= & g t ;


Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<C4**********************************@microsoft.co m>

Hello,

I want to represent expression having >= and <= as text so that that
can be read in an dataset

Thanks,
Nov 16 '05 #4
Isn't there a "raw" or "string" xml element type so you can put any string
in without the special chars (i.e. a formatted xml string.)? I thought I
remember reading something on that.

--
William Stacey, MVP
http://mvp.support.microsoft.com

"Richard Blewett [DevelopMentor]" <ri******@NOSPAMdevelop.com> wrote in
message news:Ox**************@tk2msftngp13.phx.gbl...
Well, looking at my post it has nicely translated my encodings into the < and > sign <sigh>. OK here are the encodings, but I'll put spaces between so
you can read them
< = & l t ;
> = & g t ;
Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<C4**********************************@microsoft.co m>
Hello,

I want to represent expression having >= and <= as text so that that
can be read in an dataset

Thanks,


Nov 16 '05 #5
yes, the CDATA section is ignored by the xml parser.

"William Stacey [MVP]" wrote:
Isn't there a "raw" or "string" xml element type so you can put any string
in without the special chars (i.e. a formatted xml string.)? I thought I
remember reading something on that.

--
William Stacey, MVP
http://mvp.support.microsoft.com

"Richard Blewett [DevelopMentor]" <ri******@NOSPAMdevelop.com> wrote in
message news:Ox**************@tk2msftngp13.phx.gbl...
Well, looking at my post it has nicely translated my encodings into the <

and > sign <sigh>. OK here are the encodings, but I'll put spaces between so
you can read them

< = & l t ;
> = & g t ;


Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<C4**********************************@microsoft.co m>

Hello,

I want to represent expression having >= and <= as text so that that
can be read in an dataset

Thanks,


Nov 16 '05 #6
Using the XmlTextWriter you can use WriteRaw method to write raw markup
to the XML file.
However, AFAIK, there is no DOM approach that will allow this.

--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"William Stacey [MVP]" <st***********@mvps.org> wrote in message
news:On**************@TK2MSFTNGP15.phx.gbl...
Isn't there a "raw" or "string" xml element type so you can put any string
in without the special chars (i.e. a formatted xml string.)? I thought I
remember reading something on that.

--
William Stacey, MVP
http://mvp.support.microsoft.com

"Richard Blewett [DevelopMentor]" <ri******@NOSPAMdevelop.com> wrote in
message news:Ox**************@tk2msftngp13.phx.gbl...
Well, looking at my post it has nicely translated my encodings into the <

and > sign <sigh>. OK here are the encodings, but I'll put spaces between
so
you can read them

< = & l t ;
> = & g t ;


Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<C4**********************************@microsoft.co m>

Hello,

I want to represent expression having >= and <= as text so that that
can be read in an dataset

Thanks,

Nov 16 '05 #7
Although, of course, you can actually set the InnerXml/OuterXml
properties of a given DOM node(XmlNode), which is kind of cool.

--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"Dennis Myrén" <de****@oslokb.no> wrote in message
news:ej*******************@news4.e.nsc.no...
Using the XmlTextWriter you can use WriteRaw method to write raw markup
to the XML file.
However, AFAIK, there is no DOM approach that will allow this.

--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"William Stacey [MVP]" <st***********@mvps.org> wrote in message
news:On**************@TK2MSFTNGP15.phx.gbl...
Isn't there a "raw" or "string" xml element type so you can put any
string
in without the special chars (i.e. a formatted xml string.)? I thought I
remember reading something on that.

--
William Stacey, MVP
http://mvp.support.microsoft.com

"Richard Blewett [DevelopMentor]" <ri******@NOSPAMdevelop.com> wrote in
message news:Ox**************@tk2msftngp13.phx.gbl...
Well, looking at my post it has nicely translated my encodings into the
<

and > sign <sigh>. OK here are the encodings, but I'll put spaces between
so
you can read them

< = & l t ;
> = & g t ;

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<C4**********************************@microsoft.co m>

Hello,

I want to represent expression having >= and <= as text so that that
can be read in an dataset

Thanks,


Nov 16 '05 #8

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

Similar topics

2
by: John Smith | last post by:
I have a table that contains a chunk of text, and the text commonly has special characters, such as "&amp;" or "–". To edit this text, there is a page where the text is dumped into a textarea....
3
by: Jens Kristensen | last post by:
I have a problem displaying a divbox containing a html-textarea - everything works fine with "normal" characters. However, when the textarea contains special chars like <P> or ' , the box fails to...
5
by: Sakharam Phapale | last post by:
Hi All, I am using an API function, which takes file path as an input. When file path contains special characters (@,#,$,%,&,^, etc), API function gives an error as "Unable to open input file"....
17
by: Carl Mercier | last post by:
Hi, Is it possible to use special characters like \n or \t in a VB.NET string, just like in C#? My guess is NO, but maybe there's something I don't know. If it's not possible, does anybody...
1
by: yasin | last post by:
is it possible inputting characters from keyboard by codes.or can we use assemly interrupts in asp.net to press keyboard buttons by code.
0
by: yasin | last post by:
is it possible inputting characters from keyboard by codes.or can we use assemly interrupts in asp.net to press keyboard buttons by code.
7
by: petedawn | last post by:
hi guys, based on users button press i am passing the following to my javascript function, test('&eacute;'). and within my javascript i have this function test(x) which processes this input. ...
3
KevinADC
by: KevinADC | last post by:
Purpose The purpose of this article is to discuss the difference between characters inside a character class and outside a character class and some special characters inside a character class....
1
by: greggorob64 | last post by:
Hello, I am working with a system developed several years ago, and was recently internationalized to support unicode languages. I am running into a very frustrating and challenging problem: In...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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...
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.