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


Red Hat Virtualization group
Daniel Veillard      | virtualization library
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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