[swift-corelibs-dev] Is NSXMLParser completely implemented (swift-3.0-PREVIEW-2)
Tony Parker
anthony.parker at apple.com
Mon Aug 8 12:00:46 CDT 2016
Hi Tim,
Can you file a JIRA for us? Swift doesn’t support optional methods in protocols, so for ObjC protocols that are optional on OS X I tried to provide default implementations that do nothing on Linux. It’s possible I missed some for NSXMLParser.
- Tony
> On Aug 2, 2016, at 8:08 PM, Tim Kreger via swift-corelibs-dev <swift-corelibs-dev at swift.org> wrote:
>
> Hi all, I'm attempting to implement an xml parser using (swift-3.0-PREVIEW-2). When compiling it requires all of the NSXMLParserDelegate functions to be implemented (they are optional on OSX) which I have implemented. However at run time none of the the delegate functions are called even though .parse() completes with no error. Ie this function never gets called during the parsing. public func parserDidStartDocument(_ parser: Foundation.NSXMLParser) { print("Did start") } I'm currently using 0.14 of the vapor framework so I have been using swift-3.0-PREVIEW-2 on ubuntu and Beta 2 on OSX as these are constraints of using that version of the framework. The parser works fine on OSX so I'm thinking that maybe the NSXMLParser is not complete on swift-3.0-PREVIEW-2. Can anyone confirm this. Kind regards Tim Tim Kreger Developer [IntelematicsLogo] Level 3, 473 Bourke Street, Melbourne. Vic. 3000, Australia t : +61 3 8415 9000 d : +61 3 8415 9000 f : +61 3 8415 9001 e : Tim.Kreger at intelematics.com This message is confidential, and may contain proprietary or legally privileged information. If you have received this email in error, please notify the sender and delete it immediately. <intel_rgb - small.bmp>_______________________________________________
> swift-corelibs-dev mailing list
> swift-corelibs-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-corelibs-dev
More information about the swift-corelibs-dev
mailing list