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?