I have the following XML Document and cannot seem to modify the 2nd and
3rd values. I have tried using "for next" and many variation of XPATH
and I must be missing something....

Here is the Input Document.....

<nds dtdversion=\"3.5\" ndsversion=\"8.x\">
<source>
<product version=\"3.5.2.20070719 \">dirxml</product>
<contact>novell, inc.</contact>
</source>
<input>
<modify class-name=\"username\"
event-id=\"mcslinf02#20071221163657#2#1\"
qualified-src-dn=\"o=ent\ou=glmc\cn=dsmith\"
src-dn=\"\glwf\ent\glmc\dsmith\" src-entry-id=\"33772\"
timestamp=\"1198255017#4\">
<association state=\"associated\">\gundluth\dsmith</association>
<modify-attr attr-name=\"userglobalgroups\">
<add-value>
<value timestamp=\"1198255017#2\"
type=\"dn\">\glwf\ent\glmc\sdi di admin</value>
</add-value>
<add-value>
<value timestamp=\"1198255017#3\"
type=\"dn\">\glwf\ent\glmc\sdi di test</value>
</add-value>
<add-value>
<value timestamp=\"1198255017#4\"
type=\"dn\">\glwf\ent\glmc\sdi di users</value>
</add-value>
</modify-attr>
</modify>
</input>
</nds>

I want the output document to just purge out the "sDI ". The XML
document may only contain 1 [add-value] or upto 15 for this issue.

Here is what I need the output to look like....

<nds dtdversion="3.5" ndsversion="8.x">
<source>
<product version="3.5.2.20070719 ">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<modify class-name="UserName"
event-id="mcslinf02#20071221163657#2#1"
qualified-src-dn="O=ENT\OU=GLMC\CN=DSMITH"
src-dn="\GLWF\ENT\GLMC\DSMITH" src-entry-id="33772"
timestamp="1198255017#4">
<association state="associated">\GUNDLUTH\DSMITH</association>
<modify-attr attr-name="UserGlobalGroups">
<add-value>
<value timestamp="1198255017#2" type="dn">\GLWF\ENT\GLMC\DI
Admin</value>
</add-value>
<add-value>
<value timestamp="1198255017#3" type="dn">\GLWF\ENT\GLMC\DI
Test</value>
</add-value>
<add-value>
<value timestamp="1198255017#4" type="dn">\GLWF\ENT\GLMC\DI
Users</value>
</add-value>
</modify-attr>
</modify>
</input>
</nds>


Thanks for your help in advance!!

Randy


--
rjreisbi
------------------------------------------------------------------------
rjreisbi's Profile: http://forums.novell.com/member.php?userid=2009
View this thread: http://forums.novell.com/showthread.php?t=304997