We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu 18.04, corelibs Foundation from Swift-4.2
md5: 4b0f476addab02fde52e3daf2bbeaa54
is duplicated by:
var kind: XMLNode.Kind { get }
Issue Description:
Whenever I use XMLDocument(xmlString:) on Linux, text nodes have kind .invalid
XMLDocument(xmlString:)
.invalid
import Foundation let doc = try! XMLDocument(xmlString: "<item>foo</item>") let node = doc.rootElement()! let child = node.children![0] print("child.kind: \(child.kind)") print("child.kind.rawValue: \(child.kind.rawValue)") print("child.kind == .text: \(child.kind == .text)") print("child.kind == .invalid: \(child.kind == .invalid)")
Linux output (looks wrong):
child.kind: invalid child.kind.rawValue: 0 child.kind == .text: false child.kind == .invalid: true
macOS output (looks okay):
child.kind: NSXMLNodeKind child.kind.rawValue: 7 child.kind == .text: true child.kind == .invalid: false
The text was updated successfully, but these errors were encountered:
Sorry, I didn't noticed SR-10717 is a dup of this. Anyway, it has been already fixed in master.
Sorry, something went wrong.
No branches or pull requests
Environment
Ubuntu 18.04, corelibs Foundation from Swift-4.2
Additional Detail from JIRA
md5: 4b0f476addab02fde52e3daf2bbeaa54
is duplicated by:
var kind: XMLNode.Kind { get }
returns an incorrect value on Linux.Issue Description:
Whenever I use
XMLDocument(xmlString:)
on Linux, text nodes have kind.invalid
Linux output (looks wrong):
macOS output (looks okay):
The text was updated successfully, but these errors were encountered: