HasXMLNode
You can review the details about the hasXMLNode JSP tag.
Description
The hasXMLNode JSP tag is used to determine if a specific XML element or attribute is returned by the API.
Attributes
binding - Required. String containing the XML path of the element or attribute to seek. If the binding string contains an attribute, this tag does not permit its body to be processed if the attribute is void, even if the element exists.
Body
Can contain HTML that is written only if the hasXMLNode evaluates to true.
Example
This example shows how a kit icon is shown for those lines belonging to an order release that contain kits.
<td class="tablecolumn" nowrap="true">
<yfc:hasXMLNode binding="xml:/OrderLine/KitLines/KitLine">
<a <%=getDetailHrefOptions("L03", getParameter("orderLineKey"), "")%>>
<img class="columnicon"
<%=getImageOptions(YFSUIBackendConsts.KIT_COMPONENTS_COLUMN, "
Kit_Components")%>>
</a>
</yfc:hasXMLNode>
</td>
This example shows how a parent kit line icon is shown for those lines that have a parent kit line.
<yfc:hasXMLNode binding="xml:/OrderLine/@OrigOrderLineKey">
<a <%=getDetailHrefOptions("L05", getParameter("origOrderLineKey"), "")%>>
<img class="columnicon" <%=getImageOptions
(YFSUIBackendConsts.DERIVED_ORDERLINES_COLUMN, "Kit_Parent_Line")%>>
</a>
</yfc:hasXMLNode>