From 3db00afc02665e3924d5d0a3989ec2914ab3eeed Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Thu, 30 Aug 2007 18:18:59 +0000 Subject: [PATCH] Faster tree parsing --- Filters/VLMusicXMLType.reader | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Filters/VLMusicXMLType.reader b/Filters/VLMusicXMLType.reader index 6a10be3..1fe4203 100755 --- a/Filters/VLMusicXMLType.reader +++ b/Filters/VLMusicXMLType.reader @@ -7,6 +7,14 @@ require File.dirname($0)+'/plistWriter' require File.dirname($0)+'/vl' require 'rexml/document' +module REXML + class XPathParser + def get_namespace(node, prefix) + return '' + end + end +end + XML = REXML::Document.new $stdin ROOT = XML.root OUTPUT = {} @@ -111,7 +119,7 @@ def makeChord(root, steps, num, denom) return chord end - + CHORDS.elements.each('measure') do |meas| updateProp meas chords = []