8. XML Request Object
add chapter

xr.urlThe URL to be used to access the remote service
xr.requestOkTrue: The request succeeded
xr.requestResultThe complete answer (XML-String) from the remote service
xr.xmlParseErrorStringIn case of an error: String containing further information about the error
xr.performRequest(record_schema=”MARC21-xml”, max_records = 100, use_access_token = true)Performs HTTP-GET with URL
xr.resetRequest()Resets all internal request-data from former requests
xr.elementText(element_name)Searches for an element in the DOM-tree with the tag_name “element”
xr.elementTextByAttributeValue(element_name, attribute_name, attribute_value)Searches for elements in the DOM-tree with the tag_name “element”, “attribute_name” and “attribute_value”
xr.elementExists(parent_element, element)Searches for parent elements in the DOM-tree
xr.clearMarcItemList()Clears the internel MARC-Item list (result of former request)
xr.itemListLength()Gives the number of entries in the MARC-Item-List
xr.fetchMarcItemList(path_to_list, list_element_name, path_to_items)Extracts the MARC-Item-List
xr.addFetchItem(column_name, item_number, subfield_code, serial_type = “ALL”, prefix = “”)
xr.marcItemListAsHtml()
xr.showMarcItemList(title = “”, information = “” )
xr.resultColumn(col_num)