Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xml::validate::base(3pm) [debian man page]

XML::Validate::Base(3pm)				User Contributed Perl Documentation				  XML::Validate::Base(3pm)

NAME
XML::Validate::Base - Abstract base class to be used by XML::Validate modules SYNOPSIS
use XML::Validate::Base; sub new { ... override new ... } sub validate { ... override validate ... } DESCRIPTION
XML::Validate::Base provides a base class with helpful subs for real XML::Validate modules. METHODS
new(%options) Constructs a new validator. This method must be overridden. validate($xml) Parses and validates $xml. Returns a true value on success, undef on failure. This method must be overridden. options An accessor for the options hashref. set_options($supplied_options,$valid_options) Sets the options for the validator. $supplied_options and $valid_options are hash refs containing respectively the options supplied to the constructor and the valid options for validator along with their default values. If the supplied options hash ref contains an option not listed in valid options, this sub throws an exception. last_error Returns the error from the last validate call. This is a hash ref with the following fields: o message o line o column Note that the error gets cleared at the beginning of each "validate" call. add_error($error) Stores $error for retrieval by last_error. $error should be a hash ref. clear_errors Clears any errors held by the validator. VERSION
$Revision: 1.9 $ on $Date: 2005/09/06 11:05:08 $ by $Author: johna $ AUTHOR
Colin Robertson <cpan _at_ bbc _dot_ co _dot_ uk> COPYRIGHT
(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 perl v5.10.1 2006-04-19 XML::Validate::Base(3pm)

Check Out this Related Man Page

Params::Validate::Dummy(3pm)				User Contributed Perl Documentation			      Params::Validate::Dummy(3pm)

NAME
Params::Validate::Dummy - Stub for Params::Validate SYNOPSIS
use Params::Validate::Dummy qw(); use Module::Optional qw(Params::Validate); DESCRIPTION
This module provides stub routines for those who don't have Params::Validate installed. For more details, please refer to the documentation for Params::Validate. The code here is just stub routines which do NOTHING at all, passing through any arguments in the API and prototypes of Params::Validate. In particular, the dummy stubs do not do defaulting, validation, untainting or anything else that Params::Validate does. If you need this functionality, either provide it yourself in the surrounding code, or don't use this module and insist that the real Params::Validate is installed. "validate", "validate_pos" The parameter list is passed through as a return value. "validate_with" Returns the value of the params option. "set_options", "validation_options" These do nothing at all. Data types: "SCALAR", "SCALARREF", "ARRAYREF", "HASHREF", "GLOB", "GLOBREF", "BOOLEAN", "CODEREF", "HANDLE", "OBJECT", "UNDEF", "UNKNOWN" In the Params::Validate module, these are constants implemented by subs that return numbers. This module implements the same functions. SUPPORT
See Module::Optional perl v5.10.1 2010-12-17 Params::Validate::Dummy(3pm)
Man Page

11 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Better way to Validate column data in file.

I am trying to validate the third column in a pipe delimited file. The column must be 10 char long and all digits 0-9. I am writing out two new files from the existing file, if it would be quicker, I could leave the bad rows in the file and ignore them in the next process. What I have is... (12 Replies)
Discussion started by: barry1
12 Replies

2. Shell Programming and Scripting

How to Validate

I have one script by which I am taking Extraction Schedule in the following format ,,,...... Here I want validate the Input from user is okey or not. Let say i have one variable SCH SCH=12:34,23:12,11:20 Could you please tell me how I will validate it. HH & MM Both should be Numeric HH... (10 Replies)
Discussion started by: SanjayLinux
10 Replies

3. Shell Programming and Scripting

Validate date

Hi I am beginner to UNIX. I wanted to help for how to write script to validate date. Please help me. (2 Replies)
Discussion started by: giridher2000
2 Replies

4. Shell Programming and Scripting

Validate Variables insert from user

Hi Can you help me validate 2 variables?The first is an input date from the user and should be like this (yyyy-mm-dd). The second variable is an input time from the user and should be like this(hh:mm).When the input is wrong i want to give the chance to the user to insert again the date or time... (8 Replies)
Discussion started by: DDoS
8 Replies

5. Shell Programming and Scripting

Validate and Calculate

Hi, i am trying to validate 2 variables and then subtract, the following code works well in AiX but when i try in Solaris it doesnt work. ((TIME1>TIME2)) && ((TIME2=TIME2+864)) ((DIF=TIME2-TIME1)) echo difference = $DIF Seconds is there any way the validation can be done using... (2 Replies)
Discussion started by: Shellslave
2 Replies

6. Shell Programming and Scripting

Epic - Validate input size

Is there an easy way to validate an input field size. Let us say a script is asking to enter 10 digits mobile number, how do I write a script to validate it is numeric and is 10 digits in length? I just need an easy way w/o using looks ...etc. Is there such a away ? Here is what I have so far... (6 Replies)
Discussion started by: mrn6430
6 Replies

7. Shell Programming and Scripting

Validate if string part of a list

I have this requirement of validating input from user to be one of a list of strings. I validate it as below. case $1 in Jan) ;; Feb) ;; . . . Dec) ;; *) echo "Invalid input. Should be one of the following." echo "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov... (8 Replies)
Discussion started by: krishmaths
8 Replies

8. Shell Programming and Scripting

Replace Char in XML Base on Condition

HI All Here is my Input file A. I want to add extra char in the line base on below condition. 1> if Below second line is <xn:vsDataType>vsDataEUtranCellFDD</xn:vsDataType> then <xn:VsDataContainer id= will be <xn:VsDataContainer_id_1= 2 > if Below second line is... (4 Replies)
Discussion started by: asavaliya
4 Replies

9. UNIX for Dummies Questions & Answers

Validate numerical

friends that way I can validate that the value is numeric taken instance var = 12re if var = numeric then a echo "Numerical else echo "not mumerico" fi edit by bakunin: please use CODE-tags for code, data and terminal output (yourself). (9 Replies)
Discussion started by: tricampeon81
9 Replies

10. UNIX for Beginners Questions & Answers

Validate csv file

Hi guys, i want to validate the no.of colums in a csv file ,but if there is a comma(,) in any of the data values it should skip and count only valid (,) commas. e.g 1.abc,pqrs,1234,567,hhh result :4 2.abc,pqrs,1234,567,hhh,"in,valid",end12 result:6 here script should skip the comma inside... (10 Replies)
Discussion started by: harry123
10 Replies

11. UNIX for Dummies Questions & Answers

Validate csv file

(10 Replies)
Discussion started by: harry123
10 Replies