Hello folks. I'm fairly new to xml, so I'm not sure if what I am try to do is even possible.
Basicallly I have the following XML (see below) and I'm trying to filter all the fields where the attribute dependatforms = the forms id attribute.
Attempted XPath query: autoforms/fields/*[autoforms/forms/form/(@id=@dependantforms)]
Basicallly I have the following XML (see below) and I'm trying to filter all the fields where the attribute dependatforms = the forms id attribute.
Attempted XPath query: autoforms/fields/*[autoforms/forms/form/(@id=@dependantforms)]
Code:
<?xml version="1.0" encoding="utf-8" ?>
<autoforms>
<forms>
<form text="Server Name Request Form" id="ServerName" showdependantfields="No" showduplicatefieldsacrossforms="No" columns="2" />
<form text="Server Checklist Request Form" id="ServerChecklist" showdependantfields="No" showduplicatefieldsacrossforms="No" columns="2" />
<fields>
<textbox id="sname" text="Server Name: " required="Yes" requirederrormessage="* Required" dependantforms="ServerName" />
<textbox id="testfield" text="Test Field: " required="Yes" requirederrormessage="* Required" dependantforms="ServerName" />
</fields>
</autoforms>