Skip to content

Commit

Permalink
update the manual
Browse files Browse the repository at this point in the history
  • Loading branch information
bicycle1885 committed Sep 8, 2017
1 parent 6742fb1 commit 1a27c44
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ for genus in eachelement(primates)
println("- ", genus_name)
for species in eachelement(genus)
# Get the content within an element.
species_name = content(species)
species_name = nodecontent(species)
println("", species["name"], " (", species_name, ")")
end
end
println()

# Find texts using XPath query.
for species_name in content.(find(primates, "//species/text()"))
for species_name in nodecontent.(find(primates, "//species/text()"))
println("- ", species_name)
end
```
Expand Down
6 changes: 6 additions & 0 deletions docs/src/manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ first. Once you have read it, [the references page](references.md) would be a
better place to find necessary functions. [The developer notes
page](devnotes.md) is for developers and most users do not need to read it.

In this manual, we use `using EzXML` for the sake of brevity. However, it is
recommended to use `import EzXML` for long scripts or packages because EzXML.jl
exports a number of names to your environment. These are useful in interactive
sessions but easily conflict with other names. If you want to see the list of
exported names, please go to the top of src/EzXML.jl.

Data types
----------

Expand Down

0 comments on commit 1a27c44

Please sign in to comment.