svn commit: r12790 - trunk/src_new/org/argouml/persistence/XmlInputStream.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2007-06-08 02:20:37-0700
New Revision: 12790

Modified:
   trunk/src_new/org/argouml/persistence/XmlInputStream.java

Log:
Fix tag check to handle short tags

Modified: trunk/src_new/org/argouml/persistence/XmlInputStream.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/persistence/XmlInputStream.java?view=diff&rev=12790&p1=trunk/src_new/org/argouml/persistence/XmlInputStream.java&p2=trunk/src_new/org/argouml/persistence/XmlInputStream.java&r1=12789&r2=12790
==============================================================================
--- trunk/src_new/org/argouml/persistence/XmlInputStream.java	(original)
+++ trunk/src_new/org/argouml/persistence/XmlInputStream.java	2007-06-08 02:20:37-0700
@@ -196,8 +196,9 @@
                     // cover the case we deal with.  Using a real XML parser
                     // would be better.
                     // Look for XML document has just a single root element
-                    || (currentTag.charAt(currentTag.length() - 1) == '/' && tag
-                            .startsWith(tagName))) {
+                    || (currentTag.charAt(currentTag.length() - 1) == '/' 
+                        && tag.startsWith(tagName)
+                        && tag.indexOf(' ') == tagName.indexOf(' '))) {
                 return true;
             }
         } else if (inTag) {
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.