gws.lib.xmlx.parser
¶
XML parser.
Source code: gws.lib.xmlx.parser
Module Contents¶
- gws.lib.xmlx.parser.from_path(path: str, opts: gws.XmlOptions | None = None) gws.XmlElement ¶
Creates an
XmlElement
object from a .xml file.- Parameters:
path – Path to the .xml file.
opts – XML options.
- gws.lib.xmlx.parser.from_string(inp: str | bytes, opts: gws.XmlOptions | None = None) gws.XmlElement ¶
Creates an
XmlElement
from a string or bytes.- Parameters:
inp – .xml file as a string or bytes.
opts – XML options.