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 vb.net

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() 

Replay

Category: vb.net Time: 2016-07-28 Views: 0

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

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