Skip to content

Commit

Permalink
readme and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
joshday committed May 23, 2024
1 parent c336152 commit 5e26b40
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "XML"
uuid = "72c71f33-b9b6-44de-8c94-c961784809e2"
authors = ["Josh Day <emailjoshday@gmail.com> and contributors"]
version = "0.3.3"
version = "0.3.4"

[deps]
Mmap = "a63ad114-7e13-5084-954f-fe012c677804"
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ attributes(node) → OrderedDict{String, String} or Nothing
value(node) → String or Nothing
children(node) → Vector{typeof(node)}
is_simple(node) → Bool (whether node is simple .e.g. <tag>item</tag>)
simplevalue(node) → e.g. "item" from <tag>item</tag>)
simple_value(node) → e.g. "item" from <tag>item</tag>)
```

<br>
Expand Down Expand Up @@ -104,12 +104,12 @@ node["key"]
```julia
node = XML.Element("tag", XML.Text("child"))

simplevalue(node)
simple_value(node)
# "child"

node2 = Node(node, children=XML.Text("changed"))

simplevalue(node2)
simple_value(node2)
# "changed"
```

Expand Down
5 changes: 3 additions & 2 deletions src/XML.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export
# Core Types:
Node, LazyNode,
# Interface:
children, nodetype, tag, attributes, value, is_simple, simplevalue,
children, nodetype, tag, attributes, value, is_simple, simplevalue, simple_value,
# Extended Interface for LazyNode:
parent, depth, next, prev

Expand Down Expand Up @@ -339,7 +339,8 @@ function _print_attrs(io::IO, o; color=:normal)
attr = attributes(o)
isnothing(attr) && return nothing
for (k,v) in attr
printstyled(io, ' ', k, '=', '"', v, '"'; color)
# printstyled(io, ' ', k, '=', '"', v, '"'; color)
print(io, ' ', k, '=', '"', v, '"')
end
end
function _print_n_children(io::IO, o::Node)
Expand Down

0 comments on commit 5e26b40

Please sign in to comment.