[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [xml] Remove an xml file's dependence on external DTD files



On Mon, May 12, 2008 at 09:03:29PM +0800, 职文超 wrote:
> I am new to XML. And I am looking for a way to convert an xml file
> depending on external DTD files to its equivalent not depending on
> external DTD files.
> 
> I want to do this because I want to parse an xml file with VTD-XML
> parser. But the VTD-XML parser doesn't support DTD. So when a xml file
> references entities defined in external DTD files, VTD-XML will fail to
> parse it.
> 
> Any suggestion will be appreciated.

  1/ avoid VTD-XML
  2/ xmllint --dtd-load --noent --dtdattr your_xml_file

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]