From 72c8cafcb146ecd7d78c06911a31c17a31a3a086 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Mon, 17 Nov 2014 23:21:55 +0100 Subject: [PATCH] Added README example on using CSS selectors. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 2cd753a..70243c5 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,12 @@ Querying a document using XPath: document.xpath('string(people/person)') # => "Alice" +Querying a document using CSS: + + document = Oga.parse_xml('Alice') + + document.css('people person') # => NodeSet(Element(name: "person" ...)) + Modifying a document and serializing it back to XML: document = Oga.parse_xml('Alice')