Community articleisXFDL method
Added by IBM contributorIBM on August 15, 2011
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

No abstract provided.


This method determines whether a node belongs to the XFDL namespace.
Each namespace is defined in the form by a namespace declaration, as shown:

Each namespace declaration defines both a prefix and a URI for the namespace. In this sample, the prefix for the XFDL namespace is xfdl and the URI is
Tags within the form are assigned specific namespaces by using the defined prefix. For example, to declare that an option is in the custom namespace, use the prefix custom as shown:
   <field sid="testField">


   public boolean isXFDL( ) throws UWIException;


There are no parameters for this method.


True if the node belongs to the XFDL namespace, false if it does not, or throws a generic exception (UWIException) if an error occurs.


The following method uses recursion to traverse the entire node structure and destroys all nodes that are not in the XFDL namespace. This method assumes that you are passing in the root node of the form.
   private static void deleteCustomInfo(FormNodeP theNode) throws Exception
   FormNodeP tempNode, tempNode2;
      /* Use recursion to step through each node of the form. */
      tempNode = theNode.getChildren();
      while(tempNode != null)
         tempNode2 = tempNode.getNext();
         tempNode = tempNode2;
      /* If the node is not in the XFDL namespace, delete it. */
      if (theNode.isXFDL() == false)

Parent topic:
FormNodeP class