From the introspection dtd document, the returned xml
from introspection can return a list of interface or node elements:
http://standards.freedesktop.org/dbus/1.0/introspect.dtd
This is useful to get the names of the child objects that
can be found on the bus path
function introspectSuccessCB(str) {
var parser = new DOMParser();
var xmlDoc = parser.parseFromString(str, "text/xml");
+ var nodes = xmlDoc.getElementsByTagName("node");
+ self.childNodeNames = [];
+ var l = nodes.length;
+ //there will always be 1 node, the parent/head node
+ if(l > 1){
+ for(var i = 1; i < l; i++){
+ self.childNodeNames.push(nodes[i].getAttribute("name"));
+ }
+ }
var interfaces = xmlDoc.getElementsByTagName("interface");
self.propInterfaces = [];
var supportDBusProperties = false;