<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Get Specific Element Value From XML String' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Get Specific Element Value From XML String' posted on the 'VB.NET' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 25 May 2013 11:56:51 -0700</pubDate>
    <lastBuildDate>Sat, 25 May 2013 11:56:51 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Get Specific Element Value From XML String</title>
      <link>http://www.programmersheaven.com/mb/VBNET/420754/420754/get-specific-element-value-from-xml-string/</link>
      <description>First post for me so hi to all :)I'm consuming some web service stuff in SSIS and have got stuck with an issue that I thought would take minutes to resolve... I was wrong.&lt;br /&gt;
&lt;br /&gt;
I'm an SSIS / SQL developer so only get mixed up in vb.net when SSIS isn't able to do what I want with native functionality so I'm coming to you as a very novice novice.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
&amp;lt;request&amp;gt;
&amp;lt;SrqNo&amp;gt;1234&amp;lt;/SrqNo&amp;gt;
&amp;lt;SeqNo&amp;gt;1&amp;lt;/SeqNo&amp;gt;
&amp;lt;/request&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
I need to get the two values from the 2 elements into 2 string variables. Sounds simple yes. I can do this in SQL in seconds so thought it would be a few minutes work yet hours later all i've managed to do is to using xmlreader pop up a messagebox displaying 'root' then 'SrqNo' then '1234' then 'SeqNo' then '1'...&lt;br /&gt;
&lt;br /&gt;
very pretty but gets me nowhere.&lt;br /&gt;
&lt;br /&gt;
* In my code the above xml will come from a string variable not a document. &lt;br /&gt;
&lt;br /&gt;
* I want to use intended xml functionality as in future packages the xml may be more complex.&lt;br /&gt;
&lt;br /&gt;
* I need to end up with 2 string variables; the 1st containing '1234' and the 2nd containing '1'.&lt;br /&gt;
&lt;br /&gt;
Simple as that?&lt;br /&gt;
&lt;br /&gt;
Cheers guys&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/420754/420754/get-specific-element-value-from-xml-string/</guid>
      <pubDate>Wed, 05 Jan 2011 11:24:00 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Re: Get Specific Element Value From XML String</title>
      <link>http://www.programmersheaven.com/mb/VBNET/420754/421149/re-get-specific-element-value-from-xml-string/#421149</link>
      <description>Hey chrissyboy,&lt;br /&gt;
&lt;br /&gt;
Check out this forum thread for how to pass a string to the XMLReader object... &lt;a href="http://social.msdn.microsoft.com/Forums/eu/xmlandnetfx/thread/2aad018f-7af1-41c3-bfa1-8691eed0eb38"&gt;http://social.msdn.microsoft.com/Forums/eu/xmlandnetfx/thread/2aad018f-7af1-41c3-bfa1-8691eed0eb38&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
You should be able to find ample  tutorials with a simple google search. If you are still having problems, you can email me directly (find my contact information in the Sticky Thread I stuck up top of this forum).&lt;br /&gt;
&lt;br /&gt;
Happy coding,&lt;br /&gt;
Sean Campbell - Firesickle</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/420754/421149/re-get-specific-element-value-from-xml-string/#421149</guid>
      <pubDate>Fri, 21 Jan 2011 14:55:02 -0700</pubDate>
      <category>VB.NET</category>
    </item>
  </channel>
</rss>