Portlet Factory, Version 6.1.2


 

About modifying elements in an IXml structure

You can modify an element in an IXml structure by changing its name, text value, or by adding attributes and setting attribute values. Use the following methods to perform these tasks.

setName(String)

Use this method to change the name of the current IXml element.

setText(String)

Use this method to set the text value of the current IXml element.

setText(String, String)

Use this method to set the text value of the IXml element specified by the XPath supplied as the first string argument to the value of the string passed as the second argument.

setAttribute(String, String)

Use this method to set the attribute specified by the first string argument to the value of the second string argument. To add an attribute to the element, call this method with the value of the first string argument being the name of the attribute you want to add.

Parent topic: About creating XML structures


Library | Support |