Created
June 17, 2013 10:02
-
-
Save fomkin/5795895 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.tenderowls.xml176; | |
import flash.utils.Namespace; | |
import haxe.io.Input; | |
import haxe.PosInfos; | |
enum XML176Document { | |
Node(name:QName, children:List<XML176Document>, pos:PosInfos); | |
Attr(name:QName, value:String, pos:PosInfos); | |
Comment(value:Input, pos:PosInfos); | |
CDATA(value:Input, pos:PosInfos); | |
} | |
class QName { | |
public var namespace(default, null):Namespace; | |
public var name(default, null):String; | |
public var pos(default, null):PosInfos; | |
public function new(namespace:Namespace, name:String, pos:PosInfos) { | |
this.namespace = namespace; | |
this.name = name; | |
this.pos = pos; | |
} | |
} | |
class Namespace { | |
public var prefix(default, null):Null<String>; | |
public var uri(default, null):Null<String>; | |
function new(?prefix:String, ?uri:String) { | |
this.prefix = prefix; | |
this.uri = uri; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment