Map<String, String> ns = new HashMap<String, String>();
ns.put("s", Soap12.SOAP_NAMESPACE);
XPathUtils xu = new XPathUtils(ns);
try {
Document fault = StaxUtils.read(new FragmentStreamReader(reader));
Element el = (Element)xu.getValue("//s:Fault/s:Code/s:Value",
fault,
XPathConstants.NODE);
if (el != null) {
faultCode = XMLUtils.getQName(el.getTextContent(), el);