This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: XML does not support "&" character ??
- From: "David B. Bitton" <david at codenoevil dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 14 Mar 2002 14:23:49 -0500
- Subject: Re: [xsl] XML does not support "&" character ??
- Organization: Code No Evil
- References: <46cebcba6f34f4affbe9efdefb911c543c90f574@>
- Reply-to: xsl-list at lists dot mulberrytech dot com
&
--
David B. Bitton
david@codenoevil.com
www.codenoevil.com
Code Made Fresh DailyT
----- Original Message -----
From: "Gregory Pearson" <GregP@nbsys.com>
To: "<" <xsl-list@lists.mulberrytech.com>
Sent: Thursday, March 14, 2002 1:48 PM
Subject: [xsl] 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