e_murf1
asked on
Need help with storing RegEx in XML
Hi,
I need to store some regular expressions in an XML but the special characters appear to be causing problems. I read somewhere that if I convert them to hex it works ok but I'd prefer to store them as they are. Does anyone know how I can get around this?
<RegularExpressions>
<TEST>
<Node><(?<tag>TEST)>(?<tex t>.*)</\k< tag>></Nod e>
<Node><(?<tag>TESTA)>(?<te xt>.*)</\k <tag>></No de>
</TEST>
</RegularExpressions>
'load the xml file
xd.Load(Application.Startu pPath & "\RegularExpressions.xml")
Dim Node As XmlNode
Dim ChildNode As XmlNode
Node = xd.SelectSingleNode("//TES T")
For Each ChildNode In Node
MsgBox(ChildNode.InnerXml)
Next
I need to store some regular expressions in an XML but the special characters appear to be causing problems. I read somewhere that if I convert them to hex it works ok but I'd prefer to store them as they are. Does anyone know how I can get around this?
<RegularExpressions>
<TEST>
<Node><(?<tag>TEST)>(?<tex
<Node><(?<tag>TESTA)>(?<te
</TEST>
</RegularExpressions>
'load the xml file
xd.Load(Application.Startu
Dim Node As XmlNode
Dim ChildNode As XmlNode
Node = xd.SelectSingleNode("//TES
For Each ChildNode In Node
MsgBox(ChildNode.InnerXml)
Next
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Eoghan.