Skip to content

Commit

Permalink
Merge branch 'main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
joshday committed Apr 27, 2023
2 parents 088674f + 7695a5c commit c8a7b03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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.1.3"
version = "0.2.0"

[deps]
Mmap = "a63ad114-7e13-5084-954f-fe012c677804"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ Declaration(; attributes...)
Document(children...)
DTD(; attributes...)
Element(tag, children...; attributes...)
ProcessingInstruction(; attributes...)
ProcessingInstruction(tag; attributes...)
Text(value)
```

### `XML.LazyNode`

A lazy data structure that just keeps track of the position in the raw data (`Vector{UInt8}`) to read from.

- Iteration in depth first search (DFS) order. This is the natural order in which you would visit XML nodes by reading an XML document from top to bottom.
- You can iterate over a `LazyNode` to "read" through an XML file:

```julia
doc = read(filename, LazyNode)
Expand Down

0 comments on commit c8a7b03

Please sign in to comment.