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

[email protected]
Newsgroups gmane.text.xml.xindice.devel
Message-ID <[email protected]>
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() {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.