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 2012/08/13 18:37:37 UTC
svn commit: r1372497 -
/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMDocument.java
Author: veithen
Date: Mon Aug 13 16:37:37 2012
New Revision: 1372497
URL: http://svn.apache.org/viewvc?rev=1372497&view=rev
Log:
Since we filter out DTDs, we don't need to handle them in FOMDocument#clone().
Modified:
abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMDocument.java
Modified: abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMDocument.java
URL: http://svn.apache.org/viewvc/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMDocument.java?rev=1372497&r1=1372496&r2=1372497&view=diff
==============================================================================
--- abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMDocument.java (original)
+++ abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMDocument.java Mon Aug 13 16:37:37 2012
@@ -200,10 +200,12 @@ public class FOMDocument<T extends Eleme
OMComment comment = (OMComment)node;
factory.createOMComment(omdoc, comment.getValue());
break;
- case OMNode.DTD_NODE:
- OMDocType doctype = (OMDocType)node;
- factory.createOMDocType(omdoc, doctype.getValue());
- break;
+ // TODO: Decide what to do with this code; it will no longer work in Axiom 1.2.14 (because of AXIOM-437).
+ // On the other hand, since we filter out DTDs, this code is never triggered.
+// case OMNode.DTD_NODE:
+// OMDocType doctype = (OMDocType)node;
+// factory.createOMDocType(omdoc, doctype.getValue());
+// break;
case OMNode.ELEMENT_NODE:
Element el = (Element)node;
omdoc.addChild((OMNode)el.clone());