# 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
jump to top

Package: phing\tasks\ext

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

Parent(s)
  \Task < \ProjectComponent
Author
  Knut Urdalen
Version
  $Id: XmlLintTask.php 1001 2010-11-24 10:40:05Z mrook $

### Properties

`$file= ''`
Details

Type
  n/a

`$filesets= 'array()'`
Default value `array()`Details

Type
  n/a

`$haltonfailure= 'true'`
Default value `true` Details

Type
  n/a

`$schema= ''`
Details

Type
  n/a

### Methods

`createFileSet( ) : \FileSet`

Nested creator, creates a FileSet for this task

Returns

Type | Description
--- | ---
\FileSet | The created fileset object

`errorHandler( int $level, string $message, string $file, int $line, $context ) : void`

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 |  |

`getDescription( ) : void`

`getLocation( ) : void`

`getOwningTarget( ) : void`

`getProject( ) : void`

`getRegisterSlot( ) : void`

`getRuntimeConfigurableWrapper( ) : void`

`getTaskName( ) : void`

`getTaskType( ) : void`

`init( ) : void`

`lint( string $file ) : void`

Performs validation

Parameters

Name | Type | Description
--- | --- | ---
$file | string |

`log( ) : void`

`logError( $message ) : void`

Parameters

Name | Type | Description
--- | --- | ---
$message |  |

`main( ) : void`

Execute lint check against PhingFile or a FileSet

`maybeConfigure( ) : void`

`perform( ) : void`

`setDescription( ) : void`

`setFile( \PhingFile $file ) : void`

File to be performed syntax check on

Parameters

Name | Type | Description
--- | --- | ---
$file | \PhingFile |

`setHaltonfailure( bool $haltonfailure ) : void`

Sets the haltonfailure attribute

Parameters

Name | Type | Description
--- | --- | ---
$haltonfailure | bool |

`setLocation( ) : void`

`setOwningTarget( ) : void`

`setProject( ) : void`

`setRuntimeConfigurableWrapper( ) : void`

`setSchema( \PhingFile $schema ) : void`

XML Schema Description file to validate against

Parameters

Name | Type | Description
--- | --- | ---
$schema | \PhingFile |

`setTaskName( ) : void`

`setTaskType( ) : void`

Documentation was generated by DocBlox 0.17.1.