From 2098d395b13677e2136ebb4793c305500f009d27 Mon Sep 17 00:00:00 2001 From: Camille TJHOA Date: Mon, 17 Dec 2018 08:56:01 +0000 Subject: [PATCH] Add rust syntax to the README --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 94f52d1..6f743d2 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Rust XML processor with some features of XPath 2.0 / 3.0 / 3.1. Building DOM tree can be done by calling new_document() function. The DOM tree can be turned into String. -``` +```rust use amxml::dom::*; let xml_string = r#"
foo
"#; let doc = new_document(&xml_string).unwrap(); @@ -34,7 +34,7 @@ First XPath example is somewhat straightforward. that match with the given XPath, and apply the function (closure) to these nodes. -``` +```rust use amxml::dom::*; let xml = r#""#; let doc = new_document(xml).unwrap(); @@ -50,7 +50,7 @@ This finds the clerk OR engineer (NOT advisor) who has no subordinates. Note that clerks and enginners appear in document order in each_node() iteration. -``` +```rust use amxml::dom::*; let xml = r#" @@ -86,7 +86,7 @@ numeric, string values as well as DOM node. The example below lists up the students, and whether or not each student got 80 or more points in every (not some) examination. -``` +```rust use amxml::dom::*; let xml = r#"