We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e724ba0 commit 2fe37a2Copy full SHA for 2fe37a2
Foundation/XMLParser.swift
@@ -465,16 +465,18 @@ open class XMLParser : NSObject {
465
}
466
467
internal func _handleParseResult(_ parseResult: Int32) -> Bool {
468
- return true
469
- /*
470
var result = true
471
if parseResult != 0 {
472
if parseResult != -1 {
473
// TODO: determine if this result is a fatal error from libxml via the CF implementations
474
+
+ if _parserError == nil {
475
+ _parserError = NSError(domain: XMLParser.errorDomain, code: Int(parseResult))
476
+ }
477
+ result = false
478
479
return result
- */
480
481
482
internal func parseData(_ data: Data) -> Bool {
0 commit comments