XML::Validate::MSXML(3pm) | User Contributed Perl Documentation | XML::Validate::MSXML(3pm) |
XML::Validate::MSXML - Interface to MSXML validator
my $validator = new XML::Validate::MSXML(%options); if ($doc = $validator->validate($xml)) { ... Do stuff with $doc ... } else { print "Document is invalid\n"; }
XML::Validate::MSXML is an interface to Microsoft's MSXML parser (often available in Windows environments) which can be used with the XML::Validate module.
Note that the error gets cleared at the beginning of each "validate" call.
XML::Validate::MSXML takes the following options:
When a call to validate fails to parse the document, the error may be retrieved using last_error.
On errors not related to the XML parsing, these methods will throw exceptions. Wrap calls with eval to catch them.
$XML::Validate::MSXML::MSXML_VERSION contains the version number of MSXML.
Win32::OLE, MSXML 4.0 or 5.0
$Revision: 1.18 $ on $Date: 2006/04/18 10:00:31 $ by $Author: mattheww $
Nathan Carr, Colin Robertson
<cpan _at_ bbc _dot_ co _dot_ uk>
(c) BBC 2005. This program is free software; you can redistribute it and/or modify it under the GNU GPL. See the file COPYING in this distribution, or http://www.gnu.org/licenses/gpl.txt
2022-06-28 | perl v5.34.0 |