Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Handling XmlNode with ampersand
Message
From
26/10/2015 20:48:34
 
 
To
All
General information
Forum:
ASP.NET
Category:
XML
Title:
Handling XmlNode with ampersand
Environment versions
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01626474
Message ID:
01626474
Views:
46
I have a Xml node having a value encoded such as the ampersand sign. When I use the XmlNodeList approach with the XmlNode object, I end up with the exact extraction. Thus, the value "Test" is now "T & a m p ; est". Is there something that can be done here with the XmlNodeList and XmlNode object instead of having to add some parsing at the end at the value level to fix that?
            ' For each node
            For Each loXmlNode In loXml.oXmlNodeList

                ' Initialization
                loXmlNode2 = loXmlNode.SelectSingleNode("Entity")

                        ' Initialization
                        loXmlNode2 = loXmlNode.SelectSingleNode("FirstName")


                        lcFirstName = Trim(loXmlNode2.InnerXml)
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform