You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@abdera.apache.org by ve...@apache.org on 2011/12/04 16:31:07 UTC
svn commit: r1210126 -
/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMService.java
Author: veithen
Date: Sun Dec 4 15:31:07 2011
New Revision: 1210126
URL: http://svn.apache.org/viewvc?rev=1210126&view=rev
Log:
Only add default namespace declarations on "service" elements that are created programmatically, but not on elments that are created by the parser. Otherwise this may result in inconsistent namespaces. This change also makes Abdera 1.x compatible with Axiom 1.2.13 (which detects this situation and triggers an exception).
Modified:
abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMService.java
Modified: abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMService.java
URL: http://svn.apache.org/viewvc/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMService.java?rev=1210126&r1=1210125&r2=1210126&view=diff
==============================================================================
--- abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMService.java (original)
+++ abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMService.java Sun Dec 4 15:31:07 2011
@@ -56,7 +56,6 @@ public class FOMService extends FOMExten
protected FOMService(QName qname, OMContainer parent, OMFactory factory, OMXMLParserWrapper builder) {
super(qname, parent, factory, builder);
- declareAtomNs();
}
protected FOMService(OMContainer parent, OMFactory factory) throws OMException {
@@ -66,7 +65,6 @@ public class FOMService extends FOMExten
protected FOMService(OMContainer parent, OMFactory factory, OMXMLParserWrapper builder) throws OMException {
super(SERVICE, parent, factory, builder);
- declareAtomNs();
}
private void declareAtomNs() {