I have a rename doc. How can I get the old cn from this using Xpath? Or
does anyone have any other suggestions on how to get the previous CN
during a rename?

new cn = rlinguino
old cn = alinguini

however this is just for this example. in the real world, it could be
anything. I have been trying to use "substring" unsuccessfully.

If anyone could give me a code example, I would really appreciate it.

Here's the rename doc:

<?xml version="1.0" encoding="UTF-8"?><nds dtdversion="3.5"
ndsversion="8.x">
<source>
<product version="?.?.?.?">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<rename cached-time="20090622213946.204Z" class-name="User"
event-id="Delimited Text#Publisher#0"
old-src-dn="\SCSLCL\spotsylvania\alinguini"
qualified-old-src-dn="O=spotsylvania\CN=alinguini"
qualified-src-dn="O=spotsylvania\CN=rlinguino" remove-old-name="true"
src-dn="\SCSLCL\spotsylvania\rlinguino" src-entry-id="66199"
timestamp="1245706786#16">
<association
state="associated">\SCSLCL\spotsylvania\alinguini</association>
<new-name>rlinguino</new-name>
</rename>
</input>
</nds>


--
bnave
------------------------------------------------------------------------
bnave's Profile: http://forums.novell.com/member.php?userid=51333
View this thread: http://forums.novell.com/showthread.php?t=377608