Table of Contents
Constants
-
NS_AMBER_AMBERDATA
= 'http://schema.slothsoft.net/amber/amberdata'
-
NS_ATOM
= 'http://www.w3.org/2005/Atom'
-
NS_CRON_INSTRUCTIONS
= 'http://schema.slothsoft.net/cron/instructions'
-
NS_EM
= 'http://www.mozilla.org/2004/em-rdf#'
-
NS_FARAH_DICTIONARY
= 'http://schema.slothsoft.net/farah/dictionary'
-
NS_FARAH_MODULE
= 'http://schema.slothsoft.net/farah/module'
-
NS_FARAH_SITES
= 'http://schema.slothsoft.net/farah/sitemap'
-
NS_GD
= 'http://schemas.google.com/g/2005'
-
NS_HTML
= 'http://www.w3.org/1999/xhtml'
-
NS_MEDIA
= 'http://search.yahoo.com/mrss/'
-
NS_PHP
= 'http://php.net/xpath'
-
NS_SAVEGAME_EDITOR
= 'http://schema.slothsoft.net/savegame/editor'
-
NS_SCHEMA_VERSIONING
= 'http://schema.slothsoft.net/schema/versioning'
-
NS_SITEMAP
= 'http://www.sitemaps.org/schemas/sitemap/0.9'
-
NS_SVG
= 'http://www.w3.org/2000/svg'
-
NS_XLINK
= 'http://www.w3.org/1999/xlink'
-
NS_XML
= 'http://www.w3.org/XML/1998/namespace'
-
NS_XSD
= 'http://www.w3.org/2001/XMLSchema'
-
NS_XSL
= 'http://www.w3.org/1999/XSL/Transform'
-
XPATH_HTML
= 4
-
XPATH_MISC
= 16
-
XPATH_NS_ALL
= -1
-
XPATH_PHP
= 8
-
XPATH_SLOTHSOFT
= 1
-
XPATH_W3C
= 2
Methods
-
createDocument()
: DOMDocument
-
guessExtension()
: string
-
load()
: DOMDocument
-
loadDocument()
: DOMDocument
-
loadXPath()
: DOMXPath
-
normalizeDocument()
: mixed
-
parse()
: DOMDocumentFragment
-
stringify()
: string
-
transformToDocument()
: DOMDocument
-
transformToFile()
: SplFileInfo
-
transformToFragment()
: DOMDocumentFragment
NS_AMBER_AMBERDATA
public
mixed
NS_AMBER_AMBERDATA
= 'http://schema.slothsoft.net/amber/amberdata'
NS_ATOM
public
mixed
NS_ATOM
= 'http://www.w3.org/2005/Atom'
NS_CRON_INSTRUCTIONS
public
mixed
NS_CRON_INSTRUCTIONS
= 'http://schema.slothsoft.net/cron/instructions'
NS_EM
public
mixed
NS_EM
= 'http://www.mozilla.org/2004/em-rdf#'
NS_FARAH_DICTIONARY
public
mixed
NS_FARAH_DICTIONARY
= 'http://schema.slothsoft.net/farah/dictionary'
NS_FARAH_MODULE
public
mixed
NS_FARAH_MODULE
= 'http://schema.slothsoft.net/farah/module'
NS_FARAH_SITES
public
mixed
NS_FARAH_SITES
= 'http://schema.slothsoft.net/farah/sitemap'
NS_GD
public
mixed
NS_GD
= 'http://schemas.google.com/g/2005'
NS_HTML
public
mixed
NS_HTML
= 'http://www.w3.org/1999/xhtml'
public
mixed
NS_MEDIA
= 'http://search.yahoo.com/mrss/'
NS_PHP
public
mixed
NS_PHP
= 'http://php.net/xpath'
NS_SAVEGAME_EDITOR
public
mixed
NS_SAVEGAME_EDITOR
= 'http://schema.slothsoft.net/savegame/editor'
NS_SCHEMA_VERSIONING
public
mixed
NS_SCHEMA_VERSIONING
= 'http://schema.slothsoft.net/schema/versioning'
NS_SITEMAP
public
mixed
NS_SITEMAP
= 'http://www.sitemaps.org/schemas/sitemap/0.9'
NS_SVG
public
mixed
NS_SVG
= 'http://www.w3.org/2000/svg'
NS_XLINK
public
mixed
NS_XLINK
= 'http://www.w3.org/1999/xlink'
NS_XML
public
mixed
NS_XML
= 'http://www.w3.org/XML/1998/namespace'
NS_XSD
public
mixed
NS_XSD
= 'http://www.w3.org/2001/XMLSchema'
NS_XSL
public
mixed
NS_XSL
= 'http://www.w3.org/1999/XSL/Transform'
XPATH_HTML
public
mixed
XPATH_HTML
= 4
XPATH_MISC
public
mixed
XPATH_MISC
= 16
XPATH_NS_ALL
public
mixed
XPATH_NS_ALL
= -1
XPATH_PHP
public
mixed
XPATH_PHP
= 8
XPATH_SLOTHSOFT
public
mixed
XPATH_SLOTHSOFT
= 1
XPATH_W3C
public
mixed
XPATH_W3C
= 2
createDocument()
public
createDocument(string $namespaceURI, string $qualifiedName) : DOMDocument
Parameters
-
$namespaceURI
: string
-
-
$qualifiedName
: string
-
Return values
DOMDocument
guessExtension()
public
static guessExtension(string $namespaceURI) : string
Parameters
-
$namespaceURI
: string
-
load()
public
load(mixed $url[, mixed $asHTML = false ]) : DOMDocument
Parameters
-
$url
: mixed
-
-
$asHTML
: mixed
= false
-
Return values
DOMDocument
loadDocument()
public
static loadDocument(mixed $filePath[, mixed $asHTML = false ]) : DOMDocument
Parameters
-
$filePath
: mixed
-
-
$asHTML
: mixed
= false
-
Return values
DOMDocument
loadXPath()
public
static loadXPath(DOMDocument $document[, int $options = self::XPATH_HTML ]) : DOMXPath
Parameters
-
$document
: DOMDocument
-
-
$options
: int
= self::XPATH_HTML
-
normalizeDocument()
public
normalizeDocument(DOMDocument $dataDoc) : mixed
Parameters
-
$dataDoc
: DOMDocument
-
parse()
public
parse(mixed $xmlCode[, DOMDocument $targetDoc = null ][, mixed $asHTML = false ]) : DOMDocumentFragment
Parameters
-
$xmlCode
: mixed
-
-
$targetDoc
: DOMDocument
= null
-
-
$asHTML
: mixed
= false
-
Return values
DOMDocumentFragment
stringify()
public
stringify(DOMNode $sourceNode) : string
Parameters
-
$sourceNode
: DOMNode
-
public
transformToDocument(mixed $source, mixed $template[, array<string|int, mixed> $param = [] ]) : DOMDocument
Parameters
-
$source
: mixed
-
-
$template
: mixed
-
-
$param
: array<string|int, mixed>
= []
-
Return values
DOMDocument
public
transformToFile(mixed $source, mixed $template[, array<string|int, mixed> $param = [] ][, SplFileInfo $output = null ]) : SplFileInfo
Parameters
-
$source
: mixed
-
-
$template
: mixed
-
-
$param
: array<string|int, mixed>
= []
-
-
$output
: SplFileInfo
= null
-
Return values
SplFileInfo
public
transformToFragment(mixed $source, mixed $template[, array<string|int, mixed> $param = [] ][, DOMDocument $targetDoc = null ]) : DOMDocumentFragment
Parameters
-
$source
: mixed
-
-
$template
: mixed
-
-
$param
: array<string|int, mixed>
= []
-
-
$targetDoc
: DOMDocument
= null
-
Return values
DOMDocumentFragment