I need to build a list of XML values from a chunk of raw
text which includes fields. In building my XML, some
extracted data have a " - " in them (such as "addr - 2").
I can't enclose my field name in quotes, as IE doesn't
like it (such as <"addr - 2"/>). What formatting can I
use? Any ideas?

Re: XML character not allowed by Atrax

Atrax
Fri Dec 05 22:42:30 CST 2003

is this XML built from an ASP script? if so you can just use
Server.HTMLEncode()

(replace " with &quot;) IIRC

________________________________________
Atrax. MVP, IIS
http://rtfm.atrax.co.uk/

newsflash : Atrax.Richedit 1.0 now released.
http://rtfm.atrax.co.uk/infinitemonkeys/components/Atrax.RichEdit/

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Re: XML character not allowed by Chris

Chris
Sat Dec 06 09:14:14 CST 2003

<field id="encoded field name">
</field>

If you use DOM methods to create the id attribute then the string is encoded
automagically.

However, element names are much stricter and as such it is generally easier
to have a generic field element where the id or name attribute is that of
the field name.

Chris.

"Sean" <swainner@oaohs.com> wrote in message
news:025601c3bb5c$7cd205b0$a101280a@phx.gbl...
I need to build a list of XML values from a chunk of raw
text which includes fields. In building my XML, some
extracted data have a " - " in them (such as "addr - 2").
I can't enclose my field name in quotes, as IE doesn't
like it (such as <"addr - 2"/>). What formatting can I
use? Any ideas?