XML parsing and writing service.
You are encouraged to make an instance of this for your application and potentially extend it, as a central API point for dealing with xml and configuring the reader and writer.
Methods | ||
---|---|---|
public
|
getReader(): Reader
|
# |
public
|
getWriter(): Writer
|
# |
public
|
parse(string|resource $input, string $contextUri = null, string &$rootElementName = null): array|object|string
|
# |
public
|
expect(string|string[] $rootElementName, string|resource $input, string $contextUri = null): array|object|string
|
# |
public
|
write(string $rootElementName, string|array|object|XmlSerializable $value, string $contextUri = null): string
|
# |
public
|
mapValueObject(string $elementName, string $className)
|
# |
public
|
writeValueObject(object $object, string $contextUri = null)
|
# |
public
static
|
parseClarkNotation(string $str): array
|
# |
Properties | |||
---|---|---|---|
public
|
array
|
$elementMap = []
|
# |
public
|
array
|
$namespaceMap = []
|
# |
public
|
array
|
$classMap = []
|
# |
public
|
int
|
$options = 0
|
# |