Refactored formatter
This commit is contained in:
@@ -74,9 +74,9 @@ def process_xml(request: request, type: str) -> str:
|
||||
elif (type == "xpath"):
|
||||
response_json['result'] = Parser.xpath(data, process)
|
||||
elif (type == "prettify"):
|
||||
response_json['result'] = Parser.prettify(data)
|
||||
response_json['result'] = Parser.format(data, True)
|
||||
elif (type == "minimize"):
|
||||
response_json['result'] = Parser.minimize(data)
|
||||
response_json['result'] = Parser.format(data, False)
|
||||
else:
|
||||
raise ValueError("Valid operation types are: xsd, xslt, xpath")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user