Skip to content

Commit

Permalink
Compat update for String rename
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKarpinski committed May 15, 2016
1 parent d31f1f4 commit 8afc04e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/LightXML.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ VERSION >= v"0.4.0-dev+6521" && __precompile__()

module LightXML

using Compat
using Compat; import Compat.String

const libxml2 = @windows? Pkg.dir("WinRPM","deps","usr","$(Sys.ARCH)-w64-mingw32","sys-root","mingw","bin","libxml2-2") : "libxml2"

Expand Down
4 changes: 2 additions & 2 deletions src/cdata.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function new_cdatanode(xdoc::XMLDocument, txt::ASCIIString)
function new_cdatanode(xdoc::XMLDocument, txt::String)
p = ccall((:xmlNewCDataBlock,libxml2), Xptr, (Xptr, Xstr, Cint), xdoc.ptr, txt, length(txt)+1)
XMLNode(p)
end

add_cdata(xdoc::XMLDocument, x::XMLElement, txt::ASCIIString) = add_child(x, new_cdatanode(xdoc,txt))
add_cdata(xdoc::XMLDocument, x::XMLElement, txt::String) = add_child(x, new_cdatanode(xdoc,txt))

0 comments on commit 8afc04e

Please sign in to comment.