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

createFileSet(
)
:
\FileSetNested 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
)
:
voidLocal error handler to catch validation errors and log them through Phing
Parameters
| Name | Type | Description |
|---|---|---|
| $level | int | |
| $message | string | |
| $file | string | |
| $line | int | |
| $context |

setFile(
\PhingFile $file
)
:
voidFile to be performed syntax check on
Parameters
| Name | Type | Description |
|---|---|---|
| $file | \PhingFile |

setHaltonfailure(
bool $haltonfailure
)
:
voidSets the haltonfailure attribute
Parameters
| Name | Type | Description |
|---|---|---|
| $haltonfailure | bool |

setSchema(
\PhingFile $schema
)
:
voidXML Schema Description file to validate against
Parameters
| Name | Type | Description |
|---|---|---|
| $schema | \PhingFile |