Home| Printable Version
As already explained, all the data binding information is specified using XPaths. This means that handling of namespaces can be important to ensure the correct details are being bound. Fortunately, FormMaker automatically imports all namespace definitions from the specified instance documents, so for the majority of cases you will not have to worry about namespaces at all. Simply drag your fields as needed to create the bindings, or use the the default bindings provided. However, if you find that you would like more control over the namespaces in use, the Namespace Definitions section can be opened to show all the namespaces that are currently defined. This allows you to see which namespaces have been imported from the instance documents, and provides the ability to add new ones and remove existing definitions. The namespace handling section of the bindings page. When examining the instance documents, there are often namespaces present that do not have a prefix defined. In this case FormMaker generates a prefix of the form ns1, ns2, etc. for each one. If you would like to change this prefix to something more appropriate, you just need to click the Edit button next to the appropriate definition, and the adjust the prefix value accordingly. Once you have made the change, click the Save button to store the new details. This will automatically update any bindings that are using the namespace to include the new prefix. When entering binding information, FormMaker automatically checks the entered details to ensure that the XPaths are valid and that any namespaces have been defined. If any errors are found these will be detailed on the screen, and the red bar will appear on the treeview to indicate that there is a problem with the field. This makes it very easy to find and fix any problems that may occur.
Field XPaths Generating and Previewing Pages