XML values as HTML attributes

admin

Administrator
Staff member
I want to have an XML file like the one below:

<field id="project_id">
<source>$S-P1</source>
<maxLength>15</maxLength>
</field>

<field id="pay_item">
<source>$S-P2</source>
<maxLength>12</maxLength>
</field>
...

And I want to be able to use those XML values in my input tags like this:

Project ID: <input type="text" maxlength=" (maxLength where field id="project_id")" value=http://www.webdeveloper.com/forum/archive/index.php/"source where field id="project_id")">
.....
Pay Item: <input type="text" maxlength=" (maxLength where field id="pay_item")" value="source where field id="pay_item")">


My plan is to have one XML file which will have all my <field> data and have multiple HTML pages referencing it. How would I go about doing this?

Thanks.
 
Back
Top