You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SR-10157 XMLParser swap element names parts under Linux (but not on MacOs)
Issue Description:
XML Elements with namespaces are reported with the namespace after the name on Linux.
For example `<ns:element></ns:element>` gets reported properly as "ns:element" on Apple platforms but "element:ns" on Linux.
This is a minimal example that shows the error (file also attached):
import Foundation
classParser:NSObject,XMLParserDelegate{func parse(){letdata="<ns:element></ns:element>".data(using:.utf8)!
letparser=XMLParser(data: data)
parser.delegate =self
parser.parse()}func parser(_ parser:XMLParser, didStartElement elementName:String, namespaceURI:String?, qualifiedName qName:String?, attributes attributeDict:[String:String]=[:]){// Prints "ns:element" on Apple platforms// Prints "element:ns" on Linux platformsprint(elementName)}}Parser().parse()
This may be related or the same error as SR-10424, but it isn't clear to me what that bug is referring to.
The text was updated successfully, but these errors were encountered:
Attachment: Download
Environment
Ubuntu 18.04.1 LTS
Additional Detail from JIRA
md5: ae382d26a101dfb4ce14aab2f478455c
duplicates:
Issue Description:
XML Elements with namespaces are reported with the namespace after the name on Linux.
For example `<ns:element></ns:element>` gets reported properly as "ns:element" on Apple platforms but "element:ns" on Linux.
This is a minimal example that shows the error (file also attached):
This may be related or the same error as SR-10424, but it isn't clear to me what that bug is referring to.
The text was updated successfully, but these errors were encountered: