feat(xml parser): Only allow angular syntax extensions if configured.

Configure via the public `angularSyntax` property on EasySAXParser and
the XmlParser wrapper.
This commit is contained in:
Hristo Deshev
2015-06-05 15:51:08 +03:00
parent aa112244fd
commit 748b4f1c99
5 changed files with 650 additions and 622 deletions

View File

@ -148,6 +148,14 @@ export class XmlParser implements definition.XmlParser {
}
}
public get angularSyntax() : boolean {
return this._parser.angularSyntax;
}
public set angularSyntax(value: boolean) {
this._parser.angularSyntax = value;
}
public parse(xmlString: string): void {
if (this._processNamespaces) {
this._namespaceStack = [];