gws.helper.xml

XML helper.

Source code: gws.helper.xml

Package Contents

class gws.helper.xml.Config(*args, **kwargs)

Bases: gws.Config

XML helper. (added in 8.1)

namespaces: list[NamespaceConfig]
gws.helper.xml.DEFAULT_NS_SCHEMA_LOCATION = '/_/owsXml/namespace/{}.xsd'
gws.helper.xml.DEFAULT_NS_URI = '/_/owsXml/namespace/{}'
class gws.helper.xml.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

Namespace schema location.

uri: gws.Url

Namespace uri.

version: str = ''

Namespace version.

xmlns: str

Default prefix for this Namespace.

class gws.helper.xml.Object

Bases: gws.Node

Configurable GWS object.

namespaces: list[gws.XmlNamespace]
activate()

Activation hook.

add_namespace(cfg: NamespaceConfig) gws.XmlNamespace

Add a custom namespace for XML generation.

configure()

Configuration hook.