diff --git a/std/haxe/xml/Proxy.hx b/std/haxe/xml/Proxy.hx index 8acb529bf61..79e5c32a4e1 100644 --- a/std/haxe/xml/Proxy.hx +++ b/std/haxe/xml/Proxy.hx @@ -26,18 +26,17 @@ package haxe.xml; 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> { + ```haxe + class MyXml extends haxe.xml.Proxy<"my.xml", MyStructure> { } - ... + var h = new haxe.ds.StringMap(); // ... 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 - ] + // Access to "myNode" is only possible if you have an id="myNode" attribute + // in your XML, and completion works as well. + ``` **/ class Proxy {