Hi All,
How can I select out an element where an attribute does not exist?
eg:
<Item Block="MYBLOCK">
<Properties>
<Property Name="ScrollbarXPosition">5542</Property>
<Property Name="ScrollbarYPosition">903</Property>
<Property Name="RecordVisualAttributeGroupName">EMPHASIZE</Property>
</Properties>
</Item>
<Item Block="MYBLOCK" Name="ITEM1">
<Properties>
<Property Name="RecordVisualAttributeGroupName">CG$TEXT_ITEM</Property>
<Property Name="VisualAttributeName">CG$TEXT_ITEM</Property>
<Property Name="PromptVisualAttributeName">PROMPT_NORMAL</Property>
</Properties>
</Item>
What I would like to do is select the Elment RecordVisualAttributeGroupName from the first elements where the Item Block="MYBLOCK" and Name is NULL. I've had a look through XPATH and can't find the function.
Something along the lines :
Item[@Block='MYBLOCK' and Name IS NULL]/Properties/Property [@Name='RecordVisualAttributeGroupName']/text()"
regards,
Steve