Documentation

XmlValidator
in package

Tags
author

Francesco Casula fra.casula@gmail.com

docs

https://stackoverflow.com/a/30058598/11008206

Table of Contents

Methods

isXMLContentValid()  : bool
isXMLFileValid()  : bool

Methods

isXMLContentValid()

public isXMLContentValid(string $xmlContent[, string $version = '1.0' ][, string $encoding = 'utf-8' ]) : bool
Parameters
$xmlContent : string

A well-formed XML string

$version : string = '1.0'

1.0

$encoding : string = 'utf-8'

utf-8

Return values
bool

isXMLFileValid()

public isXMLFileValid(string $xmlFilename[, string $version = '1.0' ][, string $encoding = 'utf-8' ]) : bool
Parameters
$xmlFilename : string

Path to the XML file

$version : string = '1.0'

1.0

$encoding : string = 'utf-8'

utf-8

Return values
bool

        
On this page

Search results