Hi
I'm using the "cifs-share-get-iter" to read out various attributes of the CIFS shares we have on a cluster (running 8.2P4) BUT, for the life of me, I cannot see how to get hold of the items within the "share-properties" section. An example of the XML is:
<cifs-share>
<share-name>SOMESHARE</share-name>
<share-properties>
<cifs-share-properties>oplocks</cifs-share-properties>
<cifs-share-properties>browsable</cifs-share-properties>
<cifs-share-properties>changenotify</cifs-share-properties>
</share-properties>
</cifs-share>
The problem seems to be that the child nodes of "share-properties" all have the same "name" (which I don't recall seeing in other "chapters" of the APIs). If I write some Python such as:
for share in result.child_get('attributes-list').children_get():
print share.sprintf()
share_props = share.child_get('share-properties')
for p in share_props.children_get():
print p.sprintf()
then (given the above XML), I correctly iterate 3 times round the inner loop and the print statement does as you would expect. How though, do I grab the "value" of each property?
Any ideas, please, anyone?
Regards,
Richard Hellier.