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

Re: XML does not support "&" character ??

Subject: Re: XML does not support "&" character ??
From: "David B. Bitton" <david@xxxxxxxxxxxxxx>
Date: Thu, 14 Mar 2002 14:23:49 -0500
xml character
&amp;

--

David B. Bitton
david@xxxxxxxxxxxxxx
www.codenoevil.com

Code Made Fresh DailyT
----- Original Message -----
From: "Gregory Pearson" <GregP@xxxxxxxxx>
To: "<" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Thursday, March 14, 2002 1:48 PM
Subject:  XML does not support "&" character ??


> Hi.  I'm converting data into XML and every time it reaches a "&"
character it throws an error.
>
> I'm running this example on IE 6.0 with MSXML 4.0 installed ...
>
> THIS WORKS:  (THERE IS NO "&" CHARACTER BETWEEN FISH CHIPS)
>
>
> <?xml version="1.0"?>
> <?xml-stylesheet type="text/xsl"?>
>
> <records>
> <record>
> <FirstName>Fred</FirstName>
> <LastName>Flintstone</LastName>
> <FavoriteFood>Fish Chips</FavoriteFood>
> </record>
> </records>
>
>
> THIS DOES NOT WORK:  (SEE THE "&" BETWEEN FISH & CHIPS)
>
>
> <?xml version="1.0"?>
> <?xml-stylesheet type="text/xsl"?>
>
> <records>
> <record>
> <FirstName>Fred</FirstName>
> <LastName>Flintstone</LastName>
> <FavoriteFood>Fish & Chips</FavoriteFood>
> </record>
> </records>
>
>
>
>
> ERROR MESSAGE:
>
> Whitespace is not allowed at this location. Error processing resource
'file:///C:/Greg/NBS/vb/Web Site Analysis Tool/XML
[test]/DelMundo/Data.xml'. Line 9, Position 24
>
>
>    <FavoriteFood>Fish & Chips</FavoriteFood>
> -----------------------^
>
>
>
>
> WHY DOES XML NOT ALLOW THE "&" CHARACTER?
>
> THANKS
>
>
>
>
>  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.