From 8919ef0cbba0ca4030912783be19c903fa95f9c5 Mon Sep 17 00:00:00 2001 From: Anton S Date: Wed, 6 Feb 2013 18:28:57 +0100 Subject: [PATCH] fixed bug in XMLHelper --- src/XMLHelper.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/XMLHelper.scala b/src/XMLHelper.scala index 38baa75..14ad7a8 100644 --- a/src/XMLHelper.scala +++ b/src/XMLHelper.scala @@ -7,10 +7,10 @@ class XMLHelper(elem: xml.Node) { val value = elem.attribute(name).getOrElse(null) if (value != null) - value.toString + value.text else if (required) throw new ParseException( - "missing attribute: " + name + " => " + elem.toString) + "missing attribute: " + name + " => " + elem.text) else (if (default != null) default else null)