-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Is there a way of preventing the Formatter.format_string() from decoding encoded characters in the original xml?
Example:
xmlstr = """<ogc:Filter someattrib="example with encoded chars < > that should stay encoded"><ogc:PropertyIsEqualTo><ogc:PropertyName>stationid_alpha</ogc:PropertyName><ogc:Literal>val</ogc:Literal></ogc:PropertyIsEqualTo></ogc:Filter>"""
formatter = xmlformatter.Formatter()
outstr = formatter.format_string(xmlstr)
print outstr
Output:
<ogc:Filter someattrib="example with encoded chars < > that should stay encoded">
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>stationid_alpha</ogc:PropertyName>
<ogc:Literal>val</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
Metadata
Metadata
Assignees
Labels
No labels