Skip to content

Commit 1a75fb4

Browse files
committed
readme
1 parent 9be9c75 commit 1a75fb4

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ This package offers fast data structures for reading and writing XML files with
1111
#### `Node`/`LazyNode` Interface:
1212

1313
- `nodetype(node) → XML.NodeType` (See `?XML.NodeType` for details).
14+
- `Document # prolog & root Element`
15+
- `DTD # <!DOCTYPE ...>`
16+
- `Declaration # <?xml attributes... ?>`
17+
- `ProcessingInstruction # <?NAME attributes... ?>`
18+
- `Comment # <!-- ... -->`
19+
- `CData # <![CData[...]]>`
20+
- `Element # <NAME attributes... > children... </NAME>`
21+
- `Text # text`
1422
- `tag(node) → String or Nothing`
1523
- `attributes(node) → Dict{String,String} or Nothing`
1624
- `value(node) → String or Nothing`

src/XML.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ unescape(x::AbstractString) = replace(x, reverse.(escape_chars)...)
2525
- Element # <NAME attributes... > children... </NAME>
2626
- Text # text
2727
"""
28-
@enum(NodeType, Document, DTD, Declaration, ProcessingInstruction, Comment, CData, Element, Text)
28+
@enum(NodeType, CData, Comment, Declaration, Document, DTD, Element, ProcessingInstruction, Text)
2929

3030

3131
#-----------------------------------------------------------------------------# raw

0 commit comments

Comments
 (0)