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

2016-08-02 Thread Tim Kreger via swift-corelibs-dev
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 : [email protected]

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.
___
swift-corelibs-dev mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev


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

2016-08-08 Thread Tim Kreger via swift-corelibs-dev
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 : [email protected]

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: [email protected]  on behalf of Tony 
Parker 
Sent: Tuesday, August 9, 2016 3:00 AM
To: Tim Kreger
Cc: [email protected]
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 
>  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 : 
> [email protected] 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. 
> ___
> swift-corelibs-dev mailing list
> [email protected]
> https://lists.swift.org/mailman/listinfo/swift-corelibs-dev

___
swift-corelibs-dev mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev