Regular Expression Help

  • Thread starter Thread starter Mark Keogh
  • Start date Start date
M

Mark Keogh

I have some XML that contains a password, and I need to remove the password prior to outputting it
to a log file.

The password is contained like so <PASSWORD>secret</PASSWORD>. I need to replace secret with ??????

Can anyone help?

Ta
 
<pseudocode>

dim doc as xmldocument
doc.load("yourXMLfile'sdirectory")
dim node as xmlnode = doc.getelementsbytagname("PASSWORD").item(0)
node.innertext = "??????"
xmldoc.save("yourXMLfile'sdirectory")

</pseudocode>

Thanks,

Seth Rowe
 
Back
Top