When executing raw XML RPCs via PyEZ, which THREE approaches or parameters can be used to handle or inspect the response XML? (Choose two) -> Wait, let's make it THREE since the prompt requires HALF of multi-select to be 'Which THREE'. Let's verify prompt: 'HALF use 'Which TWO', HALF use 'Which THREE'.' Total multi-select = 6. 3 use TWO, 3 use THREE. Let's make this one THREE. Which THREE approaches...
Trap 1: Using dev.rpc.to_dict() to automatically serialize all RPC outputs
Incorrect. This method does not exist on dev.rpc.
Trap 2: Using json.loads() directly on the RPC response object
Incorrect. RPC responses are XML elements, not JSON strings.
- A
Using dev.rpc.to_dict() to automatically serialize all RPC outputs
Why wrong: Incorrect. This method does not exist on dev.rpc.
- B
Using etree.tostring(response, encoding='unicode') to view raw XML text
Correct. Converting the XML element to string helps inspect raw output.
- C
Using lxml.etree methods directly on the returned element object
Correct. Since PyEZ returns lxml elements, lxml parsing methods apply.
- D
Using json.loads() directly on the RPC response object
Why wrong: Incorrect. RPC responses are XML elements, not JSON strings.
- E
Using XPath expressions to search specific nodes within the response element
Correct. XPath queries are fully supported on lxml elements.