IDM - success or not success

Ones in a while one would actually like to know if the result of a operation is successful.

If one does something, one would see something like:

<nds dtdversion="3.5" ndsversion="8.x">
<source>
<product version="3.6.10.4747">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<output>
<instance class-name="Group" qualified-src-dn="O=NovellOU=groupsCN=test-manages" src-dn="VAULTNovellgroupstest-manages" src-entry-id="32931"/>
<status level="success"></status>
</output>
</nds>

We know that the root node is <output>, and the result is store in $current-op, the result can then be tested with:

...
<token-xpath expression="self::status[@level = 'success']"/>
...

or if used in an condition block:

...
<if-xpath op="true">self::status[@level = 'success']</if-xpath>
...

Kind of simple, but annoying difficult to figure out.

Comments

Popular posts from this blog

Apple AirPort Express and Digital Jitter..

EIZO Colornavigator - Data Access Error

Using Borg backup across SSH with sshkeys