abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1372497 - /abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMDocument.java
Date Mon, 13 Aug 2012 16:37:37 GMT
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());



Mime
View raw message