Problem:

Running XML parsers on xml files with the following DOCTYPE definintions results in a scheme error.

<!DOCTYPE configuration [
<!ENTITY include SYSTEM "generic.xml">
]>
501 Protocol scheme 'file' is not supported file:///afs/slac.stanford.edu/u/sf/ytl/Work/SNMP/lan-monitoring/branches/xml-based-dispatcher/conf/devices/generic.xml
Handler couldn't resolve external entity at line 8, column 0, byte 108
error in processing external entity reference at line 8, column 0, byte 108:

<configuration>
&include;
^

<remap>
 at /usr/local/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi/XML/Parser.pm line 187

Solution:

Install the following perl modules:

HTML::Tagset 
HTML::Parser
  • No labels