Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <strong>new_document()</strong> function.
The DOM tree can be turned into String.

```
```rust
use amxml::dom::*;
let xml_string = r#"<?xml version="1.0"?><article>foo</article>"#;
let doc = new_document(&xml_string).unwrap();
Expand All @@ -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#"<root><a img="a1"/><a img="a2"/></root>"#;
let doc = new_document(xml).unwrap();
Expand All @@ -50,7 +50,7 @@ This finds the clerk OR engineer (NOT advisor) who has no subordinates.
Note that clerks and enginners appear in <em>document order</em>
in <strong>each_node()</strong> iteration.

```
```rust
use amxml::dom::*;
let xml = r#"
<root>
Expand Down Expand Up @@ -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 <em>every</em> (not <em>some</em>) examination.

```
```rust
use amxml::dom::*;
let xml = r#"
<root>
Expand Down