API / geotoolkit / util / XMLUtil / XMLUtil
Define utils methods to prettify or simplify XML
Constructors
- [new XMLUtil()](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.util.xmlutil.xmlutil.md#new xmlutil())
Methods
▸ Static prettify(xmlObject, onError): string
Return pretty string
| Name | Type | Description |
|---|---|---|
xmlObject | string | Document | xml string or DOM Document |
onError | (error: string) => void | onError callback |
string
▸ Static simplify(xmlObject): string
Return simplified XML string
| Name | Type | Description |
|---|---|---|
xmlObject | string | Document | xml string or DOM Document |
string