cezheng / Fuzi

A fast & lightweight XML & HTML parser in Swift with XPath & CSS support
MIT License
1.08k stars 161 forks source link

the children of XMLElement in Swift 5 is nil #96

Closed ChaselAn closed 5 years ago

ChaselAn commented 5 years ago

In Swift 5, I get the rootElement when I call xmlDocGetRootElement, the type rawValue of rootElement's children is 3. This value in Swift 4.2 is 1. Resulting in an error when I get the children of XMLElement. I guess the children's type rawValue is not a XML_ELEMENT_NODE in Swift 5. WX20190403-150204