:tocdepth: 3 :py:mod:`gws.plugin.xml_helper` =============================== .. py:module:: gws.plugin.xml_helper .. autoapi-nested-parse:: XML helper. **Source code:** :source:`gws.plugin.xml_helper` Package Contents ---------------- .. py:class:: Config(*args, **kwargs) Bases: :py:obj:`gws.Config` XML helper. (added in 8.1) .. py:attribute:: namespaces :type: list[NamespaceConfig] .. py:data:: DEFAULT_NS_SCHEMA_LOCATION :value: '/_/owsXml/namespace/{}.xsd' .. py:data:: DEFAULT_NS_URI :value: '/_/owsXml/namespace/{}' .. py:class:: NamespaceConfig(*args, **kwargs) Bases: :py:obj:`gws.Config` XML Namespace configuration. (added in 8.1) .. py:attribute:: extendsGml :type: bool :value: True Namespace schema extends the GML3 schema. .. py:attribute:: schemaLocation :type: gws.Url Namespace schema location. .. py:attribute:: uri :type: gws.Url Namespace uri. .. py:attribute:: version :type: str :value: '' Namespace version. .. py:attribute:: xmlns :type: str Default prefix for this Namespace. .. py:class:: Object Bases: :py:obj:`gws.Node` Configurable GWS object. .. py:attribute:: namespaces :type: list[gws.XmlNamespace] .. py:method:: activate() Activation hook. .. py:method:: add_namespace(cfg: NamespaceConfig) -> gws.XmlNamespace Add a custom namespace for XML generation. .. py:method:: configure() Configuration hook.