classes/phing/tasks/ext/XmlLintTask.php

A XML lint task. Checking syntax of one or more XML files against an XML Schema using the DOM extension.

author
Knut Urdalen
package
phing.tasks.ext
version
$Id: XmlLintTask.php 1001 2010-11-24 10:40:05Z mrook $

\XmlLintTask

A XML lint task. Checking syntax of one or more XML files against an XML Schema using the DOM extension.

Use {@link Project#createTask} to register a new Task.

Extends from
\Task
author
Knut Urdalen
copyright
2001,2002 THYRELL. All rights reserved
package
phing.tasks.ext
version
$Id: XmlLintTask.php 1001 2010-11-24 10:40:05Z mrook $

Properties

Propertyprotected  $file= ''
Details
Type
Propertyprotected  $filesets= 'array'
Default valuearrayDetails
Type
Propertyprotected  $haltonfailure= 'true'
Default valuetrueDetails
Type
Propertyprotected  $schema= ''
Details
Type

Methods

methodpublic  createFileSet( ) : \FileSet
Nested creator, creates a FileSet for this task
Returns
Type Description
\FileSet
methodpublic  errorHandler( int $level, string $message, string $file, int $line,  $context ) :
Local error handler to catch validation errors and log them through Phing
Parameters
Name Type Description
$level int
$message string
$file string
$line int
$context
methodprotected  lint( string $file ) : void
Performs validation
Parameters
Name Type Description
$file string
methodprotected  logError(  $message ) :
Parameters
Name Type Description
$message
methodpublic  main( ) :
Execute lint check against PhingFile or a FileSet
methodpublic  setFile( \PhingFile $file ) :
File to be performed syntax check on
Parameters
Name Type Description
$file \PhingFile
methodpublic  setHaltonfailure( bool $haltonfailure ) :
Sets the haltonfailure attribute
Parameters
Name Type Description
$haltonfailure bool
methodpublic  setSchema( \PhingFile $schema ) :
XML Schema Description file to validate against
Parameters
Name Type Description
$schema \PhingFile
Documentation was generated by DocBlox 0.13.1.