Explorar el Código

[cpp] put the XmlType back in

Hugh hace 9 años
padre
commit
eeebd06502
Se han modificado 1 ficheros con 40 adiciones y 0 borrados
  1. 40 0
      std/cpp/NativeXml.hx

+ 40 - 0
std/cpp/NativeXml.hx

@@ -21,7 +21,47 @@
  */
 package cpp;
 
+@:enum abstract XmlType(Int) {
+	/**
+		Represents an XML element type.
+	**/
+	var Element = 0;
+	/**
+		Represents XML parsed character data type.
+	**/
+	var PCData = 1;
+	/**
+		Represents XML character data type.
+	**/
+	var CData = 2;
+	/**
+		Represents an XML comment type.
+	**/
+	var Comment = 3;
+	/**
+		Represents an XML doctype element type.
+	**/
+	var DocType = 4;
+	/**
+	 	Represents an XML processing instruction type.
+	**/
+	var ProcessingInstruction = 5;
+	/**
+		Represents an XML document type.
+	**/
+	var Document = 6;
+}
+
 class Xml {
+	static inline var Element = XmlType.Element;
+	static inline var PCData = XmlType.PCData;
+	static inline var CData = XmlType.CData;
+	static inline var Comment = XmlType.Comment;
+	static inline var DocType = XmlType.DocType;
+	static inline var ProcessingInstruction = XmlType.ProcessingInstruction;
+	static inline var Document = XmlType.Document;
+
+
 	private var _nodeName : String;
 	private var _nodeValue : String;
 	private var _attributes : Dynamic<String>;