xml.Proxy

Proxy<Const, T>

package haxe-xml

Available on all platforms

This proxy can be inherited with an XML file name parameter. It will only allow access to fields which corresponds to an "id" attribute value in the XML file :

class MyXml extends haxe.xml.Proxy<"my.xml", MyStructure> {
}

var h = new haxe.ds.StringMap<MyStructure>();
// ... fill h with "my.xml" content
var m = new MyXml(h.get);
trace(m.myNode.structField);
// Access to "myNode" is only possible if you have an id="myNode" attribute
// in your XML, and completion works as well.

Constructor

new (f:String ‑> T )

Methods

resolve (k:String):T

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/haxe/xml/Proxy.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部