TyrfingMjolnir/libxmljs — pull request #2 by TyrfingMjolnir (2014-03-12 03:15:57+00:00)
Title: Added one more example use for conditional child

Example 2 conditional grandchild value at attribute
```javascript
#!/usr/local/bin/node

var libxmljs = require("libxmljs");
var xml = '' +
'' +
'' +
'grandchild content' +
'grandchild content 2' +
'grandchild content 3' +
'' +
'with content!' +
'';

var xmlDoc = libxmljs.parseXml(xml);

var specificgchild = xmlDoc.get('/root/child/grandchild[@baz="buzz"]');
console.log( specificgchild.text() );
console.log( specificgchild.attr('faz').value() );
```