xml parsing using xpath in 3.0 framework

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi,
I want to select xml node using attribute values ignoring case insensitive.
For example:I will search for "<span style="text-decoration:underline <span style="color:#0066cc http://sharedoc.collaboration.agilent.com/sites/wwfo-rsd/sd/upper/nps1/admin/webdoc team minutes - epsg1066099.pdf" value in xml file.I have
to get the xml node.I tired using translate function but it didnt work.Below is the code and xml file.
code:
XmlNode node = myXmlDoc.SelectSingleNode("mappings/URL[contains(translate(.,ABCDEFGHIJKLMNOPQRSTUVWXYZ,abcdefghijklmnopqrstuvwxyz)," + strRequestURL + ")]");

<?xml version="1.0" encoding="utf-8" ?><br/>
<mappings><br/>
<URL src=" http://webdoc.it.agilent.com/xpedio/groups/adminfolder/documents/data/epsg1066099.pdf http://sharedoc.collaboration.agilent.com/sites/wwfo-rsd/sd/upper/nps1/admin/webdoc http://webdoc.it.agilent.com/xpedio/groups/adminfolder/documents/data/epsg1066099.pdf http://sharedoc.collaboration.agilent.com/sites/wwfo-rsd/sd/upper/nps1/admin/webdoc
team minutes - epsg1066099.pdf</URL><br/>
<URL src=" http://webdoc.it.agilent.com/xpedio/groups/restricted/documents/data/epsg1066531.vsd http://sharedoc.collaboration.agilent.com/sites/wwfo-rsd/sd/no http://webdoc.it.agilent.com/xpedio/groups/restricted/documents/data/epsg1066531.vsd http://sharedoc.collaboration.agilent.com/sites/wwfo-rsd/sd/no
prog2/nps2/content development process[1] - epsg1066531.vsd</URL><br/>
<URL src=" http://webdoc.it.agilent.com/xpedio/groups/restricted/documents/data/epsg1066532.vsd http://sharedoc.collaboration.agilent.com/sites/wwfo-rsd/sd/no http://webdoc.it.agilent.com/xpedio/groups/restricted/documents/data/epsg1066532.vsd http://sharedoc.collaboration.agilent.com/sites/wwfo-rsd/sd/no
prog/nps/web page process[1] - epsg1066532.vsd</URL><br/>
<URL src=" http://webdoc.it.agilent.com/xpedio/groups/restricted/documents/data/epsg1066533.vsd http://sharedoc.collaboration.agilent.com/sites/wwfo-rsd/sd/no http://webdoc.it.agilent.com/xpedio/groups/restricted/documents/data/epsg1066533.vsd http://sharedoc.collaboration.agilent.com/sites/wwfo-rsd/sd/no
prog/nps/search engineering process[1] - epsg1066533.vsd</URL><br/>
<URL src=" http://webdoc.it.agilent.com/xpedio/groups/restricted/documents/data/epsg1066534.vsd http://sharedoc.collaboration.agilent.com/sites/wwfo-rsd/sd/no http://webdoc.it.agilent.com/xpedio/groups/restricted/documents/data/epsg1066534.vsd http://sharedoc.collaboration.agilent.com/sites/wwfo-rsd/sd/no
prog/nps/banner advertising process[1] - epsg1066534.vsd</URL><br/>
<URL src=" http://webdoc.it.agilent.com/xpedio/groups/restricted/documents/data/epsg1066536.vsd http://sharedoc.collaboration.agilent.com/sites/wwfo-rsd/sd/no http://webdoc.it.agilent.com/xpedio/groups/restricted/documents/data/epsg1066536.vsd http://sharedoc.collaboration.agilent.com/sites/wwfo-rsd/sd/no
prog/nps/data sheet development process[1] - epsg1066536.vsd</URL><br/>
<URL src=" http://webdoc.it.agilent.com/xpedio/groups/restricted/documents/data/epsg1066537.vsd http://sharedoc.collaboration.agilent.com/sites/wwfo-rsd/sd/no http://webdoc.it.agilent.com/xpedio/groups/restricted/documents/data/epsg1066537.vsd http://sharedoc.collaboration.agilent.com/sites/wwfo-rsd/sd/no
prog/nps/press release process[1] - epsg1066537.vsd</URL><br/>
</mappings>
Thanks
Srini.


View the full article
 
Back
Top