Discussion:
Ignoring Entities
(too old to reply)
frameexpert
2006-10-20 19:05:47 UTC
Permalink
Hello All,

Is it possible to load an XML file with MSXML and have it ignore
internal entities. I am trying to open an XHTML file, but it chokes on
entities such as  . I would like it to open the file and not try
to resolve these entities. Thanks in advance. (And, thanks Martin for
all the help).

Rick Quatro
Martin Honnen
2006-10-21 11:45:38 UTC
Permalink
Post by frameexpert
Is it possible to load an XML file with MSXML and have it ignore
internal entities. I am trying to open an XHTML file, but it chokes on
entities such as  . I would like it to open the file and not try
to resolve these entities.
  is not an entity but an entity reference. And the entity nbsp
needs to be declared to allow the XML parser to parse the entity
reference. Only referencs to the entities lt, gt, amp, quot, apos can be
used without explicit declaration.

On the other hand if that is a valid XHTML document then it has a
DOCTYPE node referencing an XHTML DTD that declares those (X)HTML
specific entities an XML parser that fetches the DTD should be able to
read the entity declarations and parse the document containing
references to such entities.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Loading...