abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r429864 - /incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractXPath.java
Date Tue, 08 Aug 2006 22:34:46 GMT
Author: jmsnell
Date: Tue Aug  8 15:34:46 2006
New Revision: 429864

URL: http://svn.apache.org/viewvc?rev=429864&view=rev
Log:
Bug: using the default namespace interferes with the namespace mappings in the XPath,
change AbstractXPath to not use default namespaces

Modified:
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractXPath.java

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractXPath.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractXPath.java?rev=429864&r1=429863&r2=429864&view=diff
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractXPath.java
(original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractXPath.java
Tue Aug  8 15:34:46 2006
@@ -33,9 +33,9 @@
   public Map<String, String> getDefaultNamespaces() {
     if (namespaces == null) 
       namespaces = new HashMap<String,String>();
-    namespaces.put(Constants.PREFIX, Constants.ATOM_NS);
-    namespaces.put(Constants.APP_PREFIX, Constants.APP_NS);
-    namespaces.put(Constants.CONTROL_PREFIX, Constants.CONTROL_NS);
+    namespaces.put("a", Constants.ATOM_NS);
+    namespaces.put("app", Constants.APP_NS);
+    namespaces.put("pub", Constants.CONTROL_NS);
     return namespaces;
   }
 



Mime
View raw message