From: Tara L Andrews Date: Wed, 15 Jan 2014 18:52:01 +0000 (+0000) Subject: Fix boneheaded XML parsing mistake. Fixes #32 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f60227e23c6222e1ddcc9755845bb7f803616574;p=scpubgit%2Fstemmaweb.git Fix boneheaded XML parsing mistake. Fixes #32 --- diff --git a/lib/stemmaweb/Controller/Root.pm b/lib/stemmaweb/Controller/Root.pm index eebf21a..8fa2489 100644 --- a/lib/stemmaweb/Controller/Root.pm +++ b/lib/stemmaweb/Controller/Root.pm @@ -144,7 +144,7 @@ sub newtradition :Local :Args(0) { $errmsg = "XML file parsing error: $err"; } if( $doc ) { - if( $doc->documentElement->nodeName eq 'GraphML' ) { + if( $doc->documentElement->nodeName eq 'graphml' ) { $type = 'CollateX'; } elsif( $doc->documentElement->nodeName ne 'TEI' ) { $errmsg = 'Unrecognized XML type ' . $doc->documentElement->nodeName;