--- a/rdfxml/src/main/scala/RDFXML.scala Thu Dec 02 16:46:04 2010 -0500
+++ b/rdfxml/src/main/scala/RDFXML.scala Tue Dec 28 10:56:35 2010 -0500
@@ -51,7 +51,9 @@
case class ParseError(
val message:String,
val errorType:ParseErrorType,
- val level:ParseErrorLevel)
+ val level:ParseErrorLevel,
+ val column:Int,
+ val line:Int)
object ParseError {
def fromSAXParseException(e:SAXParseException, level:ParseErrorLevel):ParseError = {
@@ -61,7 +63,7 @@
if (message.size > 1 && message(1) == 'W') Warning
else if (message.size > 1 && message(1) == 'E') Error
else level
- new ParseError(message, errorType, correctedLevel)
+ new ParseError(message, errorType, correctedLevel, e.getColumnNumber, e.getLineNumber)
}
}