I have an xml file, I use the xpath /content
which returns the following line:
<content xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
How can I get the type 'nil'? I am trying to write a test which will check if the content is empty, if there is no conten it will say nil="true" otherwise it will give the type e.g. xsi:type="String">true
I've tried //content[@xsi] and //content/xsi but still can't limit it down to just the part I want.
I could just get a substring but I think there must be a way to do it with xpath.