glimpseio / GlimpseXML

Fast XML DOM parser & serializer in pure Swift for iOS & Mac
MIT License
8 stars 7 forks source link

Swift3 and GlimpseXML after converting from Swift2 #10

Open anji-fosms opened 7 years ago

anji-fosms commented 7 years ago

Hi All, After converting the GlimpseXML from Swift to Swift3 i am getting the below error

" ‘init’ is unavailable: use ‘withMemoryRebound(to:capacity:)’ to temporarily view memory as another layout-compatible type_."

at the line if let str = stringFromFixedCString(UnsafeBufferPointer(start: UnsafePointer(buf), count: Int(buflen))) { string = str } in serialize(indent: Bool = false) and serialize(indent: Bool = false, encoding: String? = "utf8") functions of GlimpseXML.swift file. I have tried to address these issues but could not succeeded. Please give me some suggestions in this regard.

Thanks Anji