abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r468593 - in /incubator/abdera/java/trunk: core/src/main/java/org/apache/abdera/model/Element.java parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java
Date Sat, 28 Oct 2006 00:09:12 GMT
Author: jmsnell
Date: Fri Oct 27 17:09:11 2006
New Revision: 468593

URL: http://svn.apache.org/viewvc?view=rev&rev=468593
Log:
Add a method for explicitly declaring XML namespaces on an Element

Modified:
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Element.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Element.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Element.java?view=diff&rev=468593&r1=468592&r2=468593
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Element.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Element.java Fri
Oct 27 17:09:11 2006
@@ -204,4 +204,10 @@
    * @param The text value
    */
   void setText(String text);
+  
+  /**
+   * Declare a namespace
+   */
+  void declareNS(String uri, String prefix);
+  
 }

Modified: incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java?view=diff&rev=468593&r1=468592&r2=468593
==============================================================================
--- incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java
(original)
+++ incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java
Fri Oct 27 17:09:11 2006
@@ -610,4 +610,8 @@
     }
     return null;
   }
+  
+  public void declareNS(String prefix, String uri) {
+    super.declareNamespace(uri, prefix);
+  }
 }



Mime
View raw message