Slide 59
Slide 59 text
var isName = false
func parser(_ parser: XMLParser,
didStartElement elementName: String,
namespaceURI: String?,
qualifiedName qName: String?,
attributes attributeDict: [String : String] = [:]) {
// ݱࡏղੳதͷλάΛఆ
if elementName == "໊લ" {
isName = true
}
}
func parser(_ parser: XMLParser,
foundCharacters string: String) {
if isName {
text.append(string)
}
}
func parser(_ parser: XMLParser,
didEndElement elementName: String,
namespaceURI: String?,
qualifiedName qName: String?) {
// ղੳதϑϥάΛOFF
if elementName == "໊લ" {
isName = false
}
}
9.-1BSTFS%FMFHBUF
໊લΛऔಘ