*/
private QueryResult constructEdit(Element root, String query)
throws APIException, CaptchaException {
try {
XPath xpa = XPath.newInstance(query);
Element node = (Element) xpa.selectSingleNode(root);
if (node != null) {
XPath xpaResult = XPath.newInstance("./@result");
String result = xpaResult.valueOf(node);
if ("Success".equalsIgnoreCase(result)) {
XPath xpaPageId = XPath.newInstance("./@pageid");