¿Podría alguien proporcionar la expresión XPath que selecciona todos los nodos que tienen el atributo explícito 'xmlns', p. <html xmlns="http://www.w3.org/1999/xhtml">
? //*[@xmlns]
no funciona porque (como se vio) xmlns no es tratado como atributo por XPath.XPath: seleccione nodos con el atributo explícito 'xmlns'
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<title>Информация по счетам, картам</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="pragma" content="no-cache"/>
.......
Necesito solo 'html' node aquí.
Es posible. Aquí hay una respuesta: http://stackoverflow.com/a/3616018/1115187 – maxkoryukov