diff --git a/src/node.jl b/src/node.jl index 0250fb5..1fc5e5e 100644 --- a/src/node.jl +++ b/src/node.jl @@ -296,7 +296,7 @@ function ismanaged(node::Node) end function Base.show(io::IO, node::Node) - prefix = isdefined(Main, :Node) ? "Node" : "EzXML.Node" + prefix = "EzXML.Node" ntype = nodetype(node) if ntype ∈ (ELEMENT_NODE, ATTRIBUTE_NODE) && hasnodename(node) desc = string(repr(ntype), '[', nodename(node), ']') diff --git a/src/streamreader.jl b/src/streamreader.jl index 73b22df..71a28f5 100644 --- a/src/streamreader.jl +++ b/src/streamreader.jl @@ -28,7 +28,7 @@ end end function Base.show(io::IO, reader::StreamReader) - prefix = isdefined(Main, :StreamReader) ? "StreamReader" : "EzXML.StreamReader" + prefix = "EzXML.StreamReader" nodetype_reader = repr(nodetype(reader)) print(io, "$(prefix)(<$(nodetype_reader)>)") end