Tuesday 10 September 2013

enginframe - dynamically generate xml check buttons

enginframe - dynamically generate xml check buttons

Enginframe has it's own xml elements that programmers must deal with. I
would like to dynamically generate 'ef:option' elements in an enginframe
page I am making. The code looks like:
<?xml version="1.0" encoding="utf-8"?>
<ef:service id="example_id"
xmlns:ef="http://www.enginframe.com/2000/EnginFrame">
<ef:name>Example Name</ef:name>
<ef:info>
<author email="someone@example.com">Someone</author>
<description>
Some description.
</description>
</ef:info>
<!-- Model Parameters -->
<!--want to generate check buttons here-->
</ef:service>
The check buttons would have the attribute 'selected' equal to 'true' if
the session variable 'EF_USER' was equal to a certain value. If I could
run a javascript to generate xml, that would be great - all of my previous
attempts have failed. Does anyone know of a way to dynamically create xml
code using a script, or some other source?

No comments:

Post a Comment