I think you're using Firefox to view your XML ... FireFox doesn't seem
to show namespace declarations.

The following default namespace declaration however seems to be
defined on the root element:
xmlns="http://webservices.amazon.com/AWSECommerceService/2004-11-10";

You could use the following to fix this:

HashMap map = new HashMap();
map.put( "aws",
"http://webservices.amazon.com/AWSECommerceService/2004-11-10";;);

XPath xpath = DocumentHelper.createXPath( "//aws:SellerId");
xpath.setNamespaceURIs( map);

List nodes = xpath.selectNodes( root);

Regards,
Edwin


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_idt12&alloc_id344&op=click
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to