[xml] Invalid DTD file or missing feature in LIBXML2 ?





Hi,


I'm coordinating the project BioSig http://biosig.sf.net and we want to
include XML support using LIBXML2.
Now, I got an example XML file and a corresponding DTD scheme. XMLLINT
yields the following result.

   $ xmllint --valid --noout "example/Example aECG.xml" --dtdvalid
   schema/PORT_MT020001.xsd
   example/Example aECG.xml:13: validity error : Validation failed: no
   DTD found !
   i:schemaLocation="urn:hl7-org:v3 ../schema/PORT_MT020001.xsd"
   type="Observation"


   ^
   schema/PORT_MT020001.xsd:1: parser error : parsing XML declaration:
   '?>' expected
   <?xml version="1.0" encoding="UTF-8" standalone="no"?>
                                        ^
   schema/PORT_MT020001.xsd:2: parser error : Content error in the
   external subset
   <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
   targetNamespace="urn:hl7-
   ^
   Could not parse DTD schema/PORT_MT020001.xsd


   $ xmllint --version
   xmllint: using libxml version 20622
      compiled with: DTDValid FTP HTTP HTML C14N Catalog XPath XPointer
   XInclude Iconv Unicode Regexps Automata Schemas


Is the above problem caused by an invalid scheme file or does libxml2
not support all features of this DTD file? I'm a newbie to XML and
libxml2 and would appreciate your answer.


Kind regards,
  Alois







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