Skip to content

Commit a481040

Browse files
committed
XMLNode: Add kinds to open var kind: XMLNode.Kind { get }.
1 parent 3026c5e commit a481040

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Foundation/XMLNode.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,15 @@ open class XMLNode: NSObject, NSCopying {
294294
case _kCFXMLTypeNamespace:
295295
return .namespace
296296

297+
case _kCFXMLTypeProcessingInstruction:
298+
return .processingInstruction
299+
300+
case _kCFXMLTypeComment:
301+
return .comment
302+
303+
case _kCFXMLTypeText:
304+
return .text
305+
297306
default:
298307
return .invalid
299308
}

0 commit comments

Comments
 (0)