Project

General

Profile

« Previous | Next » 

Revision 451

Added by bojilova about 24 years ago

fix bug in toXML() about getting output of XML document like:
<paragraph

View differences:

src/edu/ucsb/nceas/metacat/DocumentImpl.java
247 247
          while ( currentNode.parentnodeid != currentElement.nodeid ) {
248 248
            currentElement = (NodeRecord)openElements.pop();
249 249
            util.debugMessage("\n POPPED: " + currentElement.nodename);
250
            if (previousNodeWasElement) {
251
              out.print(">");
252
              previousNodeWasElement = false;
253
            }  
250 254
            out.print("</" + currentElement.nodename + ">" );
251 255
            currentElement = (NodeRecord)openElements.peek();
252 256
          }

Also available in: Unified diff