gws.plugin.xml_helper

XML helper.

Source code: gws.plugin.xml_helper

Package Contents

class gws.plugin.xml_helper.Config(*args, **kwargs)

Bases: gws.Config

XML helper. (added in 8.1)

namespaces: list[NamespaceConfig]

List of custom namespaces for XML generation.

class gws.plugin.xml_helper.NamespaceConfig(*args, **kwargs)

Bases: gws.Config

XML Namespace configuration. (added in 8.1)

extendsGml: bool = True

Namespace schema extends the GML3 schema.

schemaLocation: gws.Url | None

Namespace schema location.

uri: gws.Url

Namespace uri.

version: str = ''

Namespace version.

xmlns: str

Default prefix for this Namespace.

class gws.plugin.xml_helper.Object

Bases: gws.Node

GWS object tree node.

namespaces: list[gws.XmlNamespace]
activate()

Activation hook.

add_namespace(cfg: NamespaceConfig) gws.XmlNamespace

Add a custom namespace for XML generation.

configure()

Configuration hook.