Skip to content

API / geotoolkit / util / XMLUtil / XMLUtil

Class: XMLUtil

util.XMLUtil.XMLUtil

Define utils methods to prettify or simplify XML

Table of contents

Constructors
  • [new XMLUtil()](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.util.xmlutil.xmlutil.md#new xmlutil())
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