XML Update

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I need some help on how to update my xml file. I could load but I have idea on how to update it. I have read through many articles but not with this type of loading. Any help would be great. Thanks!
<pre class="prettyprint prettyprinted" style="font-family:inherit; outline:0px; list-style-type:none; word-wrap:normal; text-align:left; overflow-y:hidden; overflow-x:auto; color:#333333; font-size:13px; line-height:16px <span class="tag" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px <Root><span class="pln" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px
<span class="tag" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px <Names><span class="pln" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px
<span class="tag" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px <Name><span class="pln" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px John<span class="tag" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px </Name><span class="pln" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px
<span class="tag" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px </Names><span class="pln" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px
<span class="tag" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px </Root>[/code]

<pre class="prettyprint prettyprinted" style="font-family:inherit; outline:0px; list-style-type:none; word-wrap:normal; text-align:left; overflow-y:hidden; overflow-x:auto; color:#333333; font-size:13px; line-height:16px <span class="typ" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px Public<span class="pln" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px <span class="typ" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px Class<span class="pln" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px <span class="typ" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px Names<span class="pln" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px
<span class="typ" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px Private<span class="pln" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px _name <span class="typ" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px As<span class="pln" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px <span class="typ" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px String<span class="pln" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px
<span class="typ" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px Public<span class="pln" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px <span class="typ" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px Property<span class="pln" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px name<span class="pun" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px ()<span class="pln" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px <span class="typ" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px As<span class="pln" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px <span class="typ" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px String<span class="pln" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px
<span class="typ" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px Get<span class="pln" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px
<span class="typ" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px Return<span class="pln" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px _name
<span class="typ" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px End<span class="pln" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px <span class="typ" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px Get<span class="pln" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px
<span class="typ" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px Set<span class="pun" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px (<span class="typ" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px ByVal<span class="pln" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px value <span class="typ" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px As<span class="pln" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px <span class="typ" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px String<span class="pun" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px )<span class="pln" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px
_name <span class="pun" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px =<span class="pln" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px value
<span class="typ" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px End<span class="pln" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px <span class="typ" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px Set<span class="pln" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px
<span class="typ" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px End<span class="pln" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px <span class="typ" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px Property<span class="pln" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px

<span class="typ" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px End<span class="pln" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px <span class="typ" style="border:0px; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px Class[/code]

<pre class="prettyprint
Dim ql As IEnumerable(Of names) = (From list In XElement.Load("c:name.xml").Elements("Names") Where list.Element("name") = "John" Select New Names With {.name = list.Element("name")}).FirstOrDefault[/code]
<br/>



View the full article
 
Back
Top