portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vku...@apache.org
Subject svn commit: r712660 - /portals/jetspeed-2/portal/branches/JS2-871-pluto-2.0-upgrade/components/jetspeed-registry/src/main/java/org/apache/jetspeed/descriptor/JetspeedDescriptorServiceImpl.java
Date Mon, 10 Nov 2008 13:53:33 GMT
Author: vkumar
Date: Mon Nov 10 05:53:32 2008
New Revision: 712660

URL: http://svn.apache.org/viewvc?rev=712660&view=rev
Log:
Fixing Xml errors

Modified:
    portals/jetspeed-2/portal/branches/JS2-871-pluto-2.0-upgrade/components/jetspeed-registry/src/main/java/org/apache/jetspeed/descriptor/JetspeedDescriptorServiceImpl.java

Modified: portals/jetspeed-2/portal/branches/JS2-871-pluto-2.0-upgrade/components/jetspeed-registry/src/main/java/org/apache/jetspeed/descriptor/JetspeedDescriptorServiceImpl.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/JS2-871-pluto-2.0-upgrade/components/jetspeed-registry/src/main/java/org/apache/jetspeed/descriptor/JetspeedDescriptorServiceImpl.java?rev=712660&r1=712659&r2=712660&view=diff
==============================================================================
--- portals/jetspeed-2/portal/branches/JS2-871-pluto-2.0-upgrade/components/jetspeed-registry/src/main/java/org/apache/jetspeed/descriptor/JetspeedDescriptorServiceImpl.java
(original)
+++ portals/jetspeed-2/portal/branches/JS2-871-pluto-2.0-upgrade/components/jetspeed-registry/src/main/java/org/apache/jetspeed/descriptor/JetspeedDescriptorServiceImpl.java
Mon Nov 10 05:53:32 2008
@@ -211,8 +211,7 @@
                     d = pa.addDisplayName(lang);
                 }
                 // else: overwrite display-name with last found entry
-                
-                d.setDisplayName(element.getTextContent().trim());
+                d.setDisplayName(element.getFirstChild().getNodeValue().trim());
             }
         }
 
@@ -236,7 +235,7 @@
                 }
                 // else: overwrite description with last found entry
                 
-                d.setDescription(element.getTextContent().trim());
+                d.setDescription(element.getFirstChild().getNodeValue().trim());
             }
         }
         
@@ -254,7 +253,7 @@
                 children = element.getElementsByTagName("role-name");
                 if (children != null && children.getLength() != 0)
                 {
-                    roleName = children.item(0).getTextContent().trim();
+                    roleName = children.item(0).getFirstChild().getNodeValue().trim();
                     if (roleName.length() > 0)
                     {
                         r = null;
@@ -286,7 +285,7 @@
                                 if (r.getDescription(JetspeedLocale.convertStringToLocale(lang))
== null)
                                 {
                                     d = r.addDescription(lang);
-                                    d.setDescription(element.getTextContent());
+                                    d.setDescription(element.getFirstChild().getNodeValue());
                                 }
                             }
                         }



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message