[swift-corelibs-dev] Is NSXMLParser completely implemented (swift-3.0-PREVIEW-2)

Tim Kreger Tim.Kreger at intelematics.com
Mon Aug 8 18:31:11 CDT 2016


Hi Tony,

here is the JIRA.
https://bugs.swift.org/browse/SR-2301

Importantly none of the delegates required to parse a string are there(didStart, didEnd, didStartElement, didEndElement etc), seem to be working.

Regards
Tim


Tim Kreger
Developer
Intelematics Australia Pty Ltd: connected mobility
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.________________________________________
From: anthony.parker at apple.com <anthony.parker at apple.com> on behalf of Tony Parker <anthony.parker at apple.com>
Sent: Tuesday, August 9, 2016 3:00 AM
To: Tim Kreger
Cc: swift-corelibs-dev at swift.org
Subject: Re: [swift-corelibs-dev] Is NSXMLParser completely implemented (swift-3.0-PREVIEW-2)

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