It should be escaped as "&". Fortunately, there's a convnience
function that takes care of this for you:

>W $$SYMENC^MXMLUTL("Physician Assistants & Advanced Practice Nursing")
Physician Assistants & Advanced Practice Nursing
>
--- David Sommers <[EMAIL PROTECTED]> wrote:

> Yep - it has to be escaped out (as it were).  You can also cheat and
> replace & with +
> 
> A great tool to determine if your XML is valid before throwing it
> into a
> parser is to just open it up in IE.  It'll try to color-code and
> style
> your XML out, in doing so - it'll display any standard XML errors
> such
> as the &.
> 
> /David.
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Nancy
> E. Anthracite
> Sent: Monday, December 13, 2004 5:47 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [Hardhats-members] XML Parsing problem
> 
> I got this from 1/2 the way down this page 
> http://www.informit.com/articles/article.asp?p=130932&redir=1
> 
> See if this works:
> 
> &amp; or &#38;
> 
> On Monday 13 December 2004 04:49 pm, Kevin Toppenberg wrote:
> > I've come across a problem an XML using the MXMLDOM
> > module.
> >
> > The erroneous line is like this:
> >
> > <Field id="Type">Physician Assistants & Advanced
> > Practice Nuring</Field>
> >
> > The problem is the "&" character (I believe).  The XML
> > parser sees this as a control character.  I can't
> > reword the phrase, because I am matching for an entry
> > in the PERSON CLASS file that has this charcter in it.
> >
> > I think what is supposed to happen is that control
> > characters are put in some other way.
> >
> > Does anyone know how to do this?  And will the parser
> > convert the code back into the above format when I
> > query to document, or will I need to do this manually?
> >
> > thanks
> > Kevin
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Mail - Easier than ever with enhanced search. Learn more.
> > http://info.mail.yahoo.com/mail_250
> >
> >
> > -------------------------------------------------------
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT Products from real
> users.
> > Discover which products truly live up to the hype. Start reading
> now.
> > http://productguide.itmanagersjournal.com/
> > _______________________________________________
> > Hardhats-members mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/hardhats-members
> 
> -- 
> Nancy Anthracite
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real
> users.
> Discover which products truly live up to the hype. Start reading now.
> 
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> Hardhats-members mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/hardhats-members
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real
> users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> Hardhats-members mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/hardhats-members
> 


=====
A practical man is a man who practices the errors of his forefathers. 
--Benjamin Disraeli
====
Greg Woodhouse 
[EMAIL PROTECTED] 
[EMAIL PROTECTED] 





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Hardhats-members mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hardhats-members

Reply via email to