Results 1 to 2 of 2

Thread: SgmlReader with XmlDocument is changing the declaration of special characters.

  1. #1

    Question SgmlReader with XmlDocument is changing the declaration of special characters.

    When I load an SgmlReader object into an XMLdocument object, it does not seem to handle special characters correctly. For instance, if the document stream contains the special character '&ndash', once loaded into XmlDocument and "saved" all occurrences get changed to [ndash ] . Same with any other special characters. I am not sure how to get around this issue or if there is a setting in SgmlReader I have overlooked. Thanks.

  2. #2
    Join Date
    Jul 2006
    Location
    San Diego, CA
    Posts
    5,450

    Default

    if SgmlReader doesn't recognize the entity code, it will convert it to text. SgmlReader is pretty much hard-coded to the standard HTML entities.
    Steve G. Bjorg - Chief Architect
    Did you check the MindTouch FAQ?
    Found a bug? Report it.
    Follow me on Twitter
    Find us on IRC: irc.freenode.net #mindtouch

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts