Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Handling XmlNode with ampersand
Message
De
26/10/2015 20:48:34
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
XML
Titre:
Handling XmlNode with ampersand
Versions des environnements
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01626474
Message ID:
01626474
Vues:
45
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform