Skip to content

Commit

Permalink
ValidatingXMLReader fix
Browse files Browse the repository at this point in the history
  • Loading branch information
robertisele committed Jul 25, 2011
1 parent b53d04c commit 22bce3b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -98,7 +98,7 @@ class ValidatingXMLReader[T](deserializer: Node => T, schemaPath: String) {
*/
private def checkUniqueIdentifiers(xml: Elem) {
val elements = (xml \\ "Aggregate") ++ (xml \\ "Compare") ++ (xml \\ "TransformInput") ++ (xml \\ "Input")
val ids = elements.map(_ \ "@id").map(_.text)
val ids = elements.map(_ \ "@id").map(_.text).filterNot(_.isEmpty)
if (ids.distinct.size < ids.size) {
val duplicatedIds = ids diff ids.distinct
val errors = duplicatedIds.map("Duplicated identifier: '" + _ + "'")
Expand Down

0 comments on commit 22bce3b

Please sign in to comment.