You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Sharon Kohen <Sh...@mintech.co.il> on 2000/07/31 19:58:04 UTC

Preventing entity references conversion.

Hi,

Is there any way to use the DOMParser & SAXParser without entity references
conversion?
Means preventing the expression : <Data>&lt;P&gt;&lt;/P&gt;</Data> become to
<Data><P>;</P></Data>


				Thanks Sharon.
                                               


Re: Preventing entity references conversion.

Posted by Dean Roddey <dr...@charmedquark.com>.
Preventing entity references conversion.No. Character refs are basically transparent in XML. They aren't reported which is how you know about references normally. Definitely the parser itself has to expand them, in order to make sure that its legal XML. IT does that to regular entity refs as well, but it also reports the start/end of them so you can know what goes inside them.

--------------------------
Dean Roddey
The CIDLib C++ Frameworks
Charmed Quark Software
droddey@charmedquark.com
http://www.charmedquark.com

"You young, and you gotcha health. Whatchoo wanna job fer?"


  ----- Original Message ----- 
  From: Sharon Kohen 
  To: Xerces-C-Dev (E-mail) 
  Sent: Monday, July 31, 2000 10:58 AM
  Subject: Preventing entity references conversion.


  Hi, 

  Is there any way to use the DOMParser & SAXParser without entity references conversion? 
  Means preventing the expression : <Data>&lt;P&gt;&lt;/P&gt;</Data> become to <Data><P>;</P></Data> 



                                  Thanks Sharon.