You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Haxe
Hello Community,
is there a method to parse a string to haxecode without using macros?
I want to link anxml structure to fields or functions. They should correspond with the xml dom on runtime (that's why I don't want to use macros).
I am also aware, that I could have a similar effect when I would link the dom as a method implemented in the source code. But I consider linking within an xml dom to be more reusable.
Linking from within xml should look a little bit like the following:
XML-Dom:
<root>
<xmlFile>c:dir/subDir01/subDir02</xmlFile>
<element01>
<subElement01>
<passOver objectName="myObject" fieldName="myField">content to be passed over</linkTo>
</subElement01>
</element01>
<root>
Haxe-Source-Code:
class Main { static function main() {
var myObject : MyClass = new MyClass(); var xml : Xml = Xml.parse( <xmlFile> );
LinkToXML.link( xml );
// This method is supposed to evaluate the dom and to pass over specific values. }
}
Of course, this is only a sketch.
But can I parse the string, safed in an XML element, as haxe code (e.g. a function call or a field access) on runtime?
Kind regards Michael
Alexander Kuzmenko
unread,
Dec 28, 2015, 4:42:46 PM12/28/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message