diff --git a/README.md b/README.md index dd4bb50..953f8a2 100644 --- a/README.md +++ b/README.md @@ -6,16 +6,15 @@ const libxmljs = require('libxmljs'); const extras = require('libxmljs-extra'); -const xml = ` - - - - Hello - - - World - -`; +const xml = ` + + + Hello + + + World + + `; const xmlDoc = libxmljs.parseXml(xml); @@ -26,7 +25,7 @@ grandchildren.forEach((grandchild) => console.log(grandchild.text())); // Prints "Hello\nWorld" -console.log(extras.count(xmlDoc, '//grandchildren')); // Prints "2" +console.log(extras.count(xmlDoc, '//grandchild')); // Prints "2" ``` ## Docs