IbisResultParser¶

Class in module ibisclient.dto

class IbisResultParser¶

Bases: object

Class to parse the XML from the server and produce an IbisResult.

Code author: Dean Rasheed (dev-group@ucs.cam.ac.uk)

parse_xml(data)¶

Parse XML data from the specified string and return an IbisResult.

Parameters
datastr

[required] The XML string returned from the server.

Returns
IbisResult

The parsed results. This may contain lists or trees of objects representing people, institutions and groups returned from the server.

parse_xml_file(file)¶

Parse XML data from the specified file and return an IbisResult.

Parameters
filefile

[required] A file object containing XML returned from the server.

Returns
IbisResult

The parsed results. This may contain lists or trees of objects representing people, institutions and groups returned from the server.