changes made after tupshins reconstruction
[org.ibex.core.git] / src / org / xwt / util / XML.java
index 8744cf4..e3d0b14 100644 (file)
@@ -787,8 +787,10 @@ public abstract class XML
         /** Prefix of current element. Substring of qName. XML Namespace Spec 14-Jan-1999 [7] */
         public String getPrefix() { return prefix; }
 
+        public Hash getUriMap() { return urimap; } // HACK
+
         /** URI of current tag. XML Namespace Spec 14-Jan-1999 section 1 */
-        public String getUri() { return getUri(null); }
+        public String getUri() { return getUri(prefix); }
 
         /** URI of a given prefix. Never returns null, instead gives "". */
         public String getUri(String p) {
@@ -900,7 +902,7 @@ public abstract class XML
         public int getType() { return this.type; }
         public int getLine() { return this.line; }
         public int getCol()  { return this.col;  }
-        public String getMessage() { return this.error; }
+        public String getMessage() { return this.error + (line >= 0 && col >= 0 ? " at " + line + ":" + col: ""); }
     }