Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
XML node convert 'amp' characters back to normal character
#1
I am extracting nodes from an XML file which contain ampersand 'amp' character conversions (& = & ...).

I get the nodes like this and put them in an array.

Function Function2
Code:
Copy      Help
node_code=x.Path("all_code/source/code" arr_code 1)

Is there a way to recode/convert back from 'amp' to it's normal character with one command/function/...?

Something like '.ConvertEncoding' or '.escape'
Or do I have to manually convert it back using findreplace/replacerx

I looked in the chapter "IXml and IXmlNode interfaces" and forum, but could have overlooked it.
#2
IXml does not convert it? Please give an example XML text where it happens.
#3
Sorry!!!
After inspecting the code I now see I added the 'amp' myself!
(It was a very small part in the code which I overlooked!)
It's very easy now to convert it back.

My apologies for this!!!
(Consider this issue solved/closed.)


Forum Jump:


Users browsing this thread: 1 Guest(s)