Path

ez components / documentation / api reference / 2008.1 / document


Document: ezcDocumentRelaxNgValidator

[ Tutorial ] [ Conversion ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcDocumentRelaxNgValidator

A tool class used by the XML based documents to validate their tree against a RelaxNG schema. [source]

Method Summary

public void __construct( $schema )
Construct validator from schema
public static void validateDomDocument( $document )
Set handler for format

Methods

__construct

void __construct( string $schema )
Construct validator from schema

Parameters

Name Type Description
$schema string  

validateDomDocument

void validateDomDocument( $document )
Set handler for format
Set the format handler for $format to the specified handler class, which should extend from ezcDocument.

Parameters

Name Type Description
$document DOMDocument  

Last updated: Wed, 18 Jun 2008