public class XINSCallResultParser extends Object
XINSCallResult
object.
The root element in the XML must be of type result. Inside
this element, param elements optionally define parameters and
an optional data element defines a data section.
If the result element contains an errorcode or a
code attribute, then the value of the attribute is interpreted
as the error code. If both these attributes are set and conflicting, then
this is considered a showstopper.
TODO: Describe rest of parse process.
Note: This parser is XML Namespaces-aware.
| Constructor and Description |
|---|
XINSCallResultParser()
Constructs a new
XINSCallResultParser. |
| Modifier and Type | Method and Description |
|---|---|
XINSCallResultData |
parse(byte[] xml)
Parses the given XML string to create a
XINSCallResultData
object. |
public XINSCallResultParser()
XINSCallResultParser.public XINSCallResultData parse(byte[] xml) throws IllegalArgumentException, ParseException
XINSCallResultData
object.xml - the XML to be parsed, not null.null.IllegalArgumentException - if xml == null.ParseException - if the specified string is not valid XML or if it is not a valid XINS
API function call result.See http://www.xins.org/.