class XmlScanner (View source)

Methods

static 
getInstance(IReader $reader)

No description

setAdditionalCallback(callable $callback)

No description

string
scan(mixed $xml)

Scan the XML for use of <!ENTITY to prevent XXE/XEE attacks.

string
scanFile(string $filestream)

Scan theXML for use of <!ENTITY to prevent XXE/XEE attacks.

Details

static getInstance(IReader $reader)

Parameters

IReader $reader

setAdditionalCallback(callable $callback)

Parameters

callable $callback

string scan(mixed $xml)

Scan the XML for use of <!ENTITY to prevent XXE/XEE attacks.

Parameters

mixed $xml

Return Value

string

Exceptions

Exception

string scanFile(string $filestream)

Scan theXML for use of <!ENTITY to prevent XXE/XEE attacks.

Parameters

string $filestream

Return Value

string

Exceptions

Exception