Results 1 to 2 of 2

Thread: VB.NET: Substring XML.....[Resolved]

  1. #1

    Thread Starter
    Addicted Member toytoy's Avatar
    Join Date
    Jul 2004
    Posts
    230

    VB.NET: Substring XML.....[Resolved]

    Say i have these XML tag:
    Code:
    <Books country = "USA" date= "21/1/2005"> 
          <Title section ="1"> 
              <Reference web = "www.any.com" topic = "1" /> 
          </Title> 
          <Title section ="1"> 
              <Reference web = "www.idea.com" topic = "2" /> 
          </Title> 
          <Title section ="2"> 
              <Reference web = "www.howTo.com" topic = "3" /> 
          </Title> 
          <Title section ="3"> 
              <Reference web = "www.do.com" topic = "4" /> 
          </Title> 
    </Books>
    how do i actually substring the "1" from the date attributes

    Thanks
    Last edited by toytoy; Jan 21st, 2005 at 05:15 AM.

  2. #2

    Thread Starter
    Addicted Member toytoy's Avatar
    Join Date
    Jul 2004
    Posts
    230

    Re: VB.NET: Substring XML

    done it with ..

    no = node.Attributes.GetNamedItem("page").Value.Substring(2, 1)
    Last edited by toytoy; Jan 21st, 2005 at 05:15 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width