Last updated

API / geotoolkit / util / XMLUtil / XMLUtil

Class: XMLUtil

util.XMLUtil.XMLUtil

Define utils methods to prettify or simplify XML

Table of contents

Constructors
Methods

Contents

Constructors

new XMLUtil()

new XMLUtil()

Methods

prettify

Static prettify(xmlObject, onError): string

Return pretty string

Parameters

Name Type Description
xmlObjectstring | Documentxml string or DOM Document
onError(error: string) => voidonError callback

Returns

string


simplify

Static simplify(xmlObject): string

Return simplified XML string

Parameters

Name Type Description
xmlObjectstring | Documentxml string or DOM Document

Returns

string