Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Select and copy parts of a string
#1
Hello !

I have a string named XML that contains :

Code:
Copy      Help
<Element>
      <ID>16</ID>
      <Date>2015-03-07T20:40:12</Date>
      <Name>File1</Name>
      <Link>http://youtube.com/</Link>
    </Element>
    <Element>
       <ID>17</ID>
      <Date>2015-03-07T20:40:12</Date>
      <Name>File2</Name>
      <Link>http://youtube.com/</Link>
    </Element>

So basically, i have :
str XML
str file=File1


But now, i would like to "get" the ID of the File1, which is 16, through the XML string, but I don't figure how i could do it :/
I don't know how or if it's possible to search some specific characters in a string, so here i am, asking for help ^^

Could you help me please ? Thanks a lot !


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)