Dodo
DOm DOcument implementation
|
DOMParser. More...
Public Member Functions | |
Document | parseFromString (string $string, string $type) |
Static Public Member Functions | |
static | _parseXml (Node $node, string $s, array $options) |
An XML parser ... is a construct that follows the rules given in XML to map a string of bytes or characters into a Document object. | |
DOMParser.
|
static |
An XML parser ... is a construct that follows the rules given in XML to map a string of bytes or characters into a Document object.
The spec then follows that up with: "Note: At the time of writing, no such rules actually exist."
Use the enabled-by-default PHP XMLReader class to do our parsing and cram it into a Document somehow, and hope we don't mangle things too badly.
Node | $node | A node to which to append the parsed XML |
string | $s | The string to parse |
array | $options |
Document Wikimedia\Dodo\DOMParser::parseFromString | ( | string | $string, |
string | $type ) |
string | $string | |
string | $type |
supposed to make a document describing it, instead of
Implements Wikimedia::IDLeDOM::DOMParser.