Skip to content

Commit e453fea

Browse files
committed
better printnode for AbstractXMLNode
1 parent d8295bd commit e453fea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/XML.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ showxml(x; depth=0) = (io=IOBuffer(); showxml(io, x); print(String(take!(io))))
122122
# assumes '\n' occurs in String
123123
showxml(io::IO, x::String; depth=0) = print(io, INDENT^depth, x)
124124

125+
printnode(io::IO, o::AbstractXMLNode) = showxml(io, o)
126+
125127

126128
#-----------------------------------------------------------------------------# DTD
127129
# TODO: all the messy details of DTD. For now, just dump everything into `text`

0 commit comments

Comments
 (0)