How to read attribute value of xml

How can i read attribute value of a xml.

I have this below xml and i am working with windows forms

How to read attribute value of xml

I tried something like this below but does not work. I want to read connection string value

        Dim xe As XElement = XElement.Load("..\\..\\KMMiddleTier.xml")     Dim name = From nm In xe.Elements("ConnectionKey") Where nm.Element("ConnectionKey").Attribute("Key") = "DB_DEV" Select nm.Element("ConnectionKey").Attribute("ConnectionString").Value.FirstOrDefault() 


Category: Time: 2016-07-28 Views: 0

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C), All Rights Reserved.

processed in 0.111 (s). 12 q(s)