Fix boneheaded XML parsing mistake. Fixes #32
Tara L Andrews [Wed, 15 Jan 2014 18:52:01 +0000 (18:52 +0000)]
lib/stemmaweb/Controller/Root.pm

index eebf21a..8fa2489 100644 (file)
@@ -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;