     private var isCallEnded:Bool = false
     private var contents:String = ""
     private var previewStackCount:Int = 0
-    private var previewElementName:String = ""
-    // parse結果取得用
+    /// parse結果取得用
     var kml:Kml?
     
     init(Url:NSURL) {

    
    func parser(parser: NSXMLParser, didStartElement elementName: String, namespaceURI: String?, qualifiedName qName: String?, attributes attributeDict: [String : String]) {
        let element = createXMLElement(stack,elementName: elementName,attributes: attributeDict)
        previewElementName = elementName
        stack.push(element!)
        debugPrint("OnStart pushd=\(element)")
        isCallEnded = false

            
            // 複数あるので特殊処理
        case Scale.elementName.lowercaseString:
            if stack.items.contains({ $0 is Model}) {
                return Model.Scale(attributes: attributes)            }
            else{
                // case ScaleDouble.elementName.lowercaseString:
                return Scale()
            }
        case IconStyleType.Icon.elementName.lowercaseString:
            if stack.items.contains({ $0 is IconStyle}){
                return IconStyleType.Icon()
            }
            else{
                // case Icon.elementName.lowercaseString:
                return Icon(attributes: attributes)
            }
        default:                                                return nil
        }
    }
