diff --git a/src/LightXML.jl b/src/LightXML.jl index cfc5d10..5a157ed 100644 --- a/src/LightXML.jl +++ b/src/LightXML.jl @@ -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" diff --git a/src/cdata.jl b/src/cdata.jl index d92a7f0..582beb0 100644 --- a/src/cdata.jl +++ b/src/cdata.jl @@ -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))