Lines Matching refs:rootElementName
103 * @param string|null $rootElementName
107 function parse($input, $contextUri = null, &$rootElementName = null) { argument
119 $rootElementName = $result['name'];
138 * @param string|string[] $rootElementName
144 function expect($rootElementName, $input, $contextUri = null) { argument
155 $rootElementName = (array)$rootElementName;
157 foreach ($rootElementName as &$rEl) {
162 if (!in_array($result['name'], $rootElementName, true)) {
163 …throw new ParseException('Expected ' . implode(' or ', (array)$rootElementName) . ' but received '…
183 * @param string $rootElementName
187 function write($rootElementName, $value, $contextUri = null) { argument
194 $w->writeElement($rootElementName, $value);