DeserialiseXml

See javadoc - uk.gov.gchq.koryphe.impl.function.DeserialiseXml

Available since Koryphe version 1.8.0

Parses an XML document into multiple Maps

Examples

Parse xml

Java
JSON
Full JSON
Python
final DeserialiseXml function = new DeserialiseXml();
{
  "class" : "DeserialiseXml"
}
{
  "class" : "uk.gov.gchq.koryphe.impl.function.DeserialiseXml"
}
g.DeserialiseXml()

Input type:

java.lang.String

Example inputs:

Input TypeInputResult TypeResult
java.lang.String<element1>value</element1>java.util.HashMap{element1=value}
java.lang.String<root><element1>value1</element1><element2>value2</element2></root>java.util.HashMap{root={element1=value1, element2=value2}}
java.lang.String<root><element1><element2>value1</element2></element1><element1><element2>value2</element2></element1></root>java.util.HashMap{root={element1=[{element2=value1}, {element2=value2}]}}

results matching ""

    No results matching ""