* splitted midi++/event.h in header and implementation
[ardour.git] / libs / pbd / tests / xpath.cc
index 6dc28fa91c36d193949f9fd29261377f8026eff0..54b844f16c2376a791f8d21d6a754ff029fe4b8b 100644 (file)
@@ -83,4 +83,16 @@ int main()
                cout << "\t found attribute node: " << node->name()  
                     << " value: " << node->attribute_value() << endl;
        }       
+       
+       cout << endl << endl << "Test 6: ProtoolsPatchFile.midnam: Find available channels on 'Name Set 1'" << endl;
+       result = doc3.root()->find(
+               "//ChannelNameSet[@Name = 'Name Set 1']//AvailableChannel[@Available = 'true']/@Channel");
+       
+       assert(result->size() == 15);
+       for(XMLSharedNodeList::const_iterator i = result->begin(); i != result->end(); ++i) {
+               boost::shared_ptr<XMLNode> node = (*i);
+               cout << "\t found available Channel: " << node->name()  
+                    << " value: " << node->attribute_value() << endl;
+       }       
+       
 }