Hi Matt and everybody;
   This is really a question about XML::LibXML, rather than AxKit...
[Is it OK to post it here?]

I can get access to well-formedness error messages by
  my $parser=XML::LibXML->new();
  eval { $doc=$parser->parse_string($xml); };
and examining $@.

However, validation error messages _don't_ show up in $@
after
  eval { $valid = $doc->is_valid(); };
Or anywhere else that I can determine!, although
the boolean returned seems to be correct.

In the case of HTML,
  eval { $hdoc=$parser->parse_html_string($html);
         $valid=$hdoc->is_valid();
   };
seems to always claim the doc is invalid (although I'm convinced
otherwise :>) [and occasionally even seg]

Are these capabilites known not to be (Yet ???) in XML::LibXML,
or am I doing something wrong?
[libxml2, via xmllint, can do them all, including validating html]

I'm using libxml 2.4.11, XML::LibXML 1.31, on RH Linux 7.1
Thanks!
bruce


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to