You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by na...@apache.org on 2010/03/18 01:53:09 UTC

svn commit: r924572 - in /xml/xindice/trunk/java/src/org/apache/xindice/xml: TextWriter.java dom/ElementImpl.java

Author: natalia
Date: Thu Mar 18 00:53:08 2010
New Revision: 924572

URL: http://svn.apache.org/viewvc?rev=924572&view=rev
Log:
Fix for processing instructions inside XML elements

Modified:
    xml/xindice/trunk/java/src/org/apache/xindice/xml/TextWriter.java
    xml/xindice/trunk/java/src/org/apache/xindice/xml/dom/ElementImpl.java

Modified: xml/xindice/trunk/java/src/org/apache/xindice/xml/TextWriter.java
URL: http://svn.apache.org/viewvc/xml/xindice/trunk/java/src/org/apache/xindice/xml/TextWriter.java?rev=924572&r1=924571&r2=924572&view=diff
==============================================================================
--- xml/xindice/trunk/java/src/org/apache/xindice/xml/TextWriter.java (original)
+++ xml/xindice/trunk/java/src/org/apache/xindice/xml/TextWriter.java Thu Mar 18 00:53:08 2010
@@ -173,7 +173,7 @@ public final class TextWriter {
                 writer.write(pi.getTarget());
                 writer.write(" ");
                 writer.write(pi.getData());
-                writer.write("?>\n");
+                writer.write("?>");
                 break;
 
             case Node.TEXT_NODE:

Modified: xml/xindice/trunk/java/src/org/apache/xindice/xml/dom/ElementImpl.java
URL: http://svn.apache.org/viewvc/xml/xindice/trunk/java/src/org/apache/xindice/xml/dom/ElementImpl.java?rev=924572&r1=924571&r2=924572&view=diff
==============================================================================
--- xml/xindice/trunk/java/src/org/apache/xindice/xml/dom/ElementImpl.java (original)
+++ xml/xindice/trunk/java/src/org/apache/xindice/xml/dom/ElementImpl.java Thu Mar 18 00:53:08 2010
@@ -85,7 +85,8 @@ public final class ElementImpl extends C
             || type == Node.COMMENT_NODE
             || type == Node.TEXT_NODE
             || type == Node.CDATA_SECTION_NODE
-            || type == Node.ENTITY_REFERENCE_NODE;
+            || type == Node.ENTITY_REFERENCE_NODE
+            || type == Node.PROCESSING_INSTRUCTION_NODE;
     }
 
     protected void checkLoaded() {