| Meta documentation | view source | Contained in the Meta distribution. |
Meta::Tool::Xmllint - run xmllint to check xml files.
Copyright (C) 2001, 2002 Mark Veltzer; All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
MANIFEST: Xmllint.pm PROJECT: meta VERSION: 0.07
package foo;
use Meta::Tool::Xmllint qw();
my($result)=Meta::Tool::Xmllint::check_file("myxml.xml");
This module runs xmllint to check XML files for you. xmllint is a tool supplied with libxml2 which is the gnome projects xml library. This tool currently runs the command line "xmllint" executable so it's not ideal but it's something...:).
check_file($) check_modu($) TEST($)
This method receives a file and checks it for you.
This method receives a development module and checks it for you.
Test suite for this module.
None.
None.
Name: Mark Veltzer Email: mailto:veltzer@cpan.org WWW: http://www.veltzer.org CPAN id: VELTZER
0.00 MV md5 progress 0.01 MV thumbnail user interface 0.02 MV more thumbnail issues 0.03 MV website construction 0.04 MV web site automation 0.05 MV SEE ALSO section fix 0.06 MV teachers project 0.07 MV md5 issues
Meta::Utils::Output(3), strict(3)
-run xmllint with DTD validation (the code is currently remarked because it cant find the DTDs - make it find them). look at the libxml2 library documentation. Some env var should be good enough.
-enable to the user of this tool to set and turn off options here. Turn this module into an object oriented one to do this.
| Meta documentation | view source | Contained in the Meta distribution. |