Hi All,
public boolean validate(Document document)
throws XFormsProcessorException
{
boolean retval = false;
JXPathContext validateContext =
JXPathContext.newContext(document);
Pointer nodePointer =
validateContext.getPointer("/SampleForm/aNode");
if ( nodePointer == null )
{
throw new XFormsProcessorException("aNode is expected
to be in the document.");
}
if ( "validatedValue".equals(nodePointer.getValue()) )
retval = true;
else
{
retval = false;
}
return retval;
}
}
In this what is SampleForm. is that form templeate nam and what is aNode. is that attribute name of form.
Please Help me