[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Problem in displaying & in XML node

Subject: Re: Problem in displaying & in XML node
From: Hari Yerram <yerram@xxxxxxxxxx>
Date: Wed, 09 Jun 1999 17:09:14 -0400
in xml
Thanks Laurie, I will try this.

Laurie Mann wrote:

> &amp; is the way to display an ampersand in XML.
>
> > -----Original Message-----
> > From: Hari Yerram [SMTP:yerram@xxxxxxxxxx]
> > Sent: Wednesday, June 09, 1999 2:48 PM
> > To:   xsl-list@xxxxxxxxxxxxxxxx
> > Subject:      Problem in displaying & in XML node
> >
> > In ASP page i was restoring the fields if the user is not entered all
> > the fileds. I am putting the values in XML nodes and i am referring it
> > from XSL.
> >
> > please look the following code.
> >
> >             email = "" + Request("email");
> >
> >             sError = "<ERROR TYPE='Email_Info'>";
> >             sError += "<Subject>";
> >             sError += subject;
> >             sError += "</Subject>";
> >             sError += "<Email>";
> >             sError += email;
> >             sError += "</Email>";
> >             sError += "</ERROR>";
> >
> > The Problem is If i have '&' (ampersand) character in my XML node it
> > is
> > displaying the following error.
> >
> > Error reading XML Data
> > Line: 1 Pos: 504
> > A name was started with an invalid character.
> > <ERROR TYPE='Email_Info'> <DESCRIPTION></DESCRIPTION>
> > <Subject>Hello</Subject>
> > <Email>&</Email>
> > </ERROR>
> >
> > Is there a way to resolve it?
> >
> > Any help is appreciated.
> >
> > I tried with using VBScript. I attached an event procedure and in the
> > event procedure i am checking character and if it is '&' i am
> > cancelling
> > the keystroke.
> > I used onkeypress() event.
> >
> >
> >
> >  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.