svn commit: r712555 - /xml/xindice/trunk/java/src/org/apache/xindice/core/meta/MetaData.java

[email protected]
Newsgroups gmane.text.xml.xindice.devel
Message-ID <[email protected]>
Author: natalia
Date: Sun Nov  9 13:20:35 2008
New Revision: 712555

URL: http://svn.apache.org/viewvc?rev=712555&view=rev
Log:
Removed comments in MetaData - it takes too long to create them

Modified:
    xml/xindice/trunk/java/src/org/apache/xindice/core/meta/MetaData.java

Modified: xml/xindice/trunk/java/src/org/apache/xindice/core/meta/MetaData.java
URL: http://svn.apache.org/viewvc/xml/xindice/trunk/java/src/org/apache/xindice/core/meta/MetaData.java?rev=712555&r1=712554&r2=712555&view=diff
==============================================================================
--- xml/xindice/trunk/java/src/org/apache/xindice/core/meta/MetaData.java (original)
+++ xml/xindice/trunk/java/src/org/apache/xindice/core/meta/MetaData.java Sun Nov  9 13:20:35 2008
@@ -25,7 +25,6 @@
 import org.apache.xindice.xml.XMLSerializable;
 import org.apache.xindice.xml.dom.DocumentImpl;
 
-import org.w3c.dom.Comment;
 import org.w3c.dom.DOMException;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
@@ -430,12 +429,6 @@
         systemElement.setAttribute(A_TYPE, getTypeString(type));
         root.appendChild(systemElement);
         if (includeTime) {
-            if (created > 0) {
-                String message = "Create time is " + (new Date(created));
-                Comment comment = doc.createComment(message);
-                systemElement.appendChild(comment);
-            }
-
             Element timeElement = null;
             if (!USE_NS) {
                 timeElement = doc.createElement(E_ATTR);
@@ -446,11 +439,6 @@
             timeElement.setAttribute(A_VALUE, Long.toString(created));
             systemElement.appendChild(timeElement);
 
-            if (modified > 0) {
-                String message = "Modified time is " + (new Date(modified));
-                Comment comment = doc.createComment(message);
-                systemElement.appendChild(comment);
-            }
             if (!USE_NS) {
                 timeElement = doc.createElement(E_ATTR);
             } else {
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.