Results 1 to 2 of 2

Thread: XPath: Help please

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2000
    Location
    Europe, Lithuania
    Posts
    309

    Resolved XPath: Help please

    I have xml with such syntax:

    <Collection>
    <Movie ID="0068646test">
    <Title>123The Godfather</Title>
    <Files>
    <File>
    <Part>1</Part>
    <Path>C:\Movies</Path>
    <Filename>mdfg1.avi</Filename>
    </File>
    </Files>
    </Movie>
    <Movie ID="0068646">
    <Title>The Godfather</Title>
    <Files>
    <File>
    <Part>1</Part>
    <Path>C:\Movies</Path>
    <Filename>movie.avi</Filename>
    </File>
    </Files>
    </Movie>
    </Collection>

    I want to select all movies with filename "movie.avi".
    I tryied
    Set oXMLNodeList = oXMLDoc.selectNodes("/Collection/Movie[//Filename='movie.avi']") but it returns all movies.

    Thank you for your help.
    Last edited by Norkis; Mar 18th, 2005 at 06:28 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