For example, run the SAXPrint example on the document below. The same
behavior is shown in xerces-c 1.4 and 1.5.1.

Matt

BEGIN -------------------------------

<?xml version="1.0"?>
<!-- these are processing instruction -->

<?xml-stylesheet type="text/xml" href="test.xsl"?>
<?xml-stylesheet type="text/xml" href="testNumberTwo.xsl"?>

<!DOCTYPE root [
  <!ELEMENT child ANY>
  <!ELEMENT node ANY>
  <!ELEMENT root (node*)>
  <!ENTITY ent1 'false == true &amp;&amp; true != false' >
]>

<root>

  <node>

    <child>
      <![CDATA[
        this >> >>> here is a <<<< test
      ]]>
    </child>

    <child>
      this is regular text
    </child>

   <child>
     here's an entity &ent1;
   </child>


   <child>
     and here's another &#169; entity
   </child>

  </node>

</root>




END --------------------------------

On Jul 23, Matt Leinhos wrote:  -----------------

>Hello,
>
>I am trying to transcode unicode &#169 into the native code page (ie -
>ascii, in this case). I am reading the XMLCh * in from SAX methods (I'm
>inheriting DocumentHandler and using my class as the SAXParser's Doc
>Handler).
>
>In my 'void characters( const XMLCh* const chars, const unsigned int
>length )' I read in the string
>
>'The XML markup and added material in this version are Copyright &#169;
>1998 Jon Bosak'
>
>When I transcode the XMLCh*, I get back
>
>'The XML markup and added material in this version are Copyright'
>
>and the rest of the string is lost; it's not even in characters seen in
>the future!
>
>When I do the transcoding outside of the SAXParser (just make a const char
>* and play with it), the results are correct.
>
>I am transoding by doing this:
>given const XMLCh *const string,
>
>DOMString s( string );
>
>cout << s.transcode();
>
>I've also tried
>
>cout << XMLString::transcode( string );
>
>but that just prints out garbage.
>
>Any ideas?
>
>Thank you,
>Matt
>
>
>
>

-- 
Matt Leinhos
[EMAIL PROTECTED]

"What's that you say, Mrs. Robinson? Joltin' Joe has left and gone away."
  -- Simon and Garfunkel


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

Reply via email to