Version 4, last updated by slim at Mar 10 08:44 2007 UTC
XmlToEformInfotron
For information on what an EForm is please read this
Sample Declaration
<div id=""
impl=""
properties=""
script="">
<script src="http://goessner.net/download/prj/jsonxml/xml2json.js">
</script>
</div>
Input Terminals
Output Terminals
Properties
Demos that use it
How does it work?
Source
BLUEPRINT(
"~01E9D8C85B9B9E4fa388452899F41D025D",
[
["xml_in", "onXml", 10]
],
[
"eform_out"
],
function (Class)
{
Class.prototype._onInit = function(props)
{
if (!xml2json) {
self.error("Missing dependency: http://goessner.net/download/prj/jsonxml/xml2json.js");
}
};
Class.prototype.onXml = function(msg)
{
var val;
try {
val = eval(xml2json(msg));
self.postMessage("eform_out", val);
} catch (ex) {
this.error(ex, "Error parsing XML: " + msg);
}
};
}, "New Infotron");