I am struggling with some plain character for XML use. I need to convert all the plain character in the their HTML format/code somehow. For example, the & character need to be converted to &.
Suggestions?
I am struggling with some plain character for XML use. I need to convert all the plain character in the their HTML format/code somehow. For example, the & character need to be converted to &.
Suggestions?
Look around for an HTMLEncode function in the language you are developing in, if it doesn't have one already.
Or if you are working with a flat XML file, there are some online HTMLEncode tools that you can use for each of the XML data entities - just search for them on Google.
Warren Ashcroft
Red Fox UK Limited - Pioneers in Internet Technology
http://www.redfoxuk.com
w.ashcroft [at] redfoxuk.com
NOTE: Forum Private Messaging should not be used to contact staff with support queries.
I’m developing in VB/ASP
So almost naturally started using server.HTMLEncode, but strangely it does not replace the plain characters to HTML code in my XML file. However, and this is even a bigger mystery to me, it does solve the errors created by special plain characters.
scrap coding in asp, use asp.net and then use xml namespace
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks