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 2008/03/14 02:25:14 UTC

svn commit: r636946 - /xml/xindice/trunk/java/src/org/apache/xindice/webadmin/PartialResponse.java

Author: natalia
Date: Thu Mar 13 18:25:12 2008
New Revision: 636946

URL: http://svn.apache.org/viewvc?rev=636946&view=rev
Log:
StringUtilities -> XMLUtilities

Modified:
    xml/xindice/trunk/java/src/org/apache/xindice/webadmin/PartialResponse.java

Modified: xml/xindice/trunk/java/src/org/apache/xindice/webadmin/PartialResponse.java
URL: http://svn.apache.org/viewvc/xml/xindice/trunk/java/src/org/apache/xindice/webadmin/PartialResponse.java?rev=636946&r1=636945&r2=636946&view=diff
==============================================================================
--- xml/xindice/trunk/java/src/org/apache/xindice/webadmin/PartialResponse.java (original)
+++ xml/xindice/trunk/java/src/org/apache/xindice/webadmin/PartialResponse.java Thu Mar 13 18:25:12 2008
@@ -19,7 +19,7 @@
 
 package org.apache.xindice.webadmin;
 
-import org.apache.xindice.util.StringUtilities;
+import org.apache.xindice.util.XMLUtilities;
 
 import java.util.ArrayList;
 
@@ -75,7 +75,7 @@
     public String toString() {
         StringBuffer buf = new StringBuffer(1024);
         buf.append("<response>");
-        buf.append("<href>").append(StringUtilities.escapeXml(href)).append("</href>");
+        buf.append("<href>").append(XMLUtilities.escape(href)).append("</href>");
 
         if (children != null && children.size() != 0) {
             for (int i = 0; i < children.size(); i++) {
@@ -139,7 +139,7 @@
 
             buf.append("<").append(name).append(">");
             if (value != null) {
-                buf.append(StringUtilities.escapeXml(value));
+                buf.append(XMLUtilities.escape(value));
             } else if (children != null && children.size() != 0) {
                 for (int i = 0; i < children.size(); i++) {
                     buf.append(((Content) children.get(i)).getContent());