Re: Problem with minidom and special chars in HTML

From: Jarek Zgoda (jzgoda_at_gazeta.usun.pl)
Date: 02/23/05


Date: Wed, 23 Feb 2005 21:06:52 +0100

Horst Gutmann napisał(a):

>> Don't use minidom or convert HTML4 to XHTML and change declaration of
>> doctype.
>>
> This was just a bad example :-) I get the same problem with XHTML in the
> doctype. The funny thing here IMO is, that the special chars are simply
> removed. No warning, no nothing :-(

As Fredrik pointed out, it's minidom that cann't fetch DTD from remote
location. Download this DTD file to your local machine (it lies at
exactly this URI), try changing PUBLIC identifier to SYSTEM and give
local path to this file.

-- 
Jarek Zgoda
http://jpa.berlios.de/ | http://www.zgodowie.org/


Relevant Pages

  • Re: XmlValidatingReader DTD validation
    ... > resolver code never gets called and the validation does not occur at all. ... > the DTD even if the icoming XML file does not specify the DTD file? ... No Doctype - no validation. ...
    (microsoft.public.dotnet.xml)
  • Re: DTD validation without DOCTYPE in xml
    ... >> I have some XML files that needs to be validated with a DTD but the xml ... >> files does not have the DOCTYPE tag that reference to the dtd file. ... > and then you can do validation on the copy. ...
    (microsoft.public.dotnet.xml)
  • Re: DOCTYPE
    ... I created a helper utility that reads the message into XMLDocument and deletes the DOCTYPE node. ... This could be done in the send pipeline. ... pipeline wants to access the dtd file and in fact looks for it in the ...
    (microsoft.public.biztalk.general)
  • Re: CreateDocumentType file not found
    ... referencing a certain dtd file. ... So far I resorted to building the document without doctype, ... to string and injecting the declaration string into it; ... You can either have dummy DTD file or handle DTD file resolving yourself. ...
    (microsoft.public.dotnet.xml)
  • Re: DTD validation without DOCTYPE in xml
    ... Is there any way to tell XmlValidatingReader to specifically use that DTD file even when DOCTYPE is not in the xml file? ...
    (microsoft.public.dotnet.xml)