MCPcopy
hub / github.com/httpie/cli / parse_xml

Function parse_xml

httpie/output/formatters/xml.py:14–17  ·  view source on GitHub ↗

Parse given XML `data` string into an appropriate :class:`~xml.dom.minidom.Document` object.

(data: str)

Source from the content-addressed store, hash-verified

12
13
14def parse_xml(data: str) -> 'Document':
15 """Parse given XML `data` string into an appropriate :class:`~xml.dom.minidom.Document` object."""
16 from defusedxml.minidom import parseString
17 return parseString(data)
18
19
20def parse_declaration(raw_body: str) -> Optional[str]:

Callers 2

__init__.pyFile · 0.90
format_bodyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected