Thanks.  I figured this was the case, but the method in the Factory class
called factory.setExpandEntityReferences(false) threw me off.  Just curious,
is this a method just in the JAXP that Xerces doesn't implement or does it
do something else?

--
Aaron Wadley                      [EMAIL PROTECTED]
Programmer/Analyst               (407) 240-3863 x7787
The Fund, Inc.                 http://www.thefund.com
=====================================================



> -----Original Message-----
> From: Ian Roberts [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 15, 2001 4:25 AM
> To: '[EMAIL PROTECTED]'
> Subject: Re: Entity expansion
> 
> 
> On Thu, 14 Jun 2001, Aaron Wadley wrote:
> 
> > Please forgive me if this question has been asked before, 
> but I can't seem
> > to find the archives.  
> > 
> > I've got an ampersand (&) in the content of an element.  Eg.
> > <field>&</field>  The parser interprets this as an entity 
> reference, when
> > it's really part of the data.  Is there a way to turn off 
> the parser trying
> > to expand this?
> 
> I don't think the XML spec would allow this.  The correct fix is to
> replace & with &amp; (the entity reference representing &) in the XML.
> 
> Ian
> 
> -- 
> Ian Roberts, Software Engineer        DecisionSoft Ltd.
> Telephone: +44-1865-203192            http://www.decisionsoft.com
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to