SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2013
    Posts
    76
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Searching XML File

    Hello

    I have an XML file with around 20,000 records. For each record there is an element:

    <commons:Country>US</commons:Country>


    Now I would like to search through all records and return the country codes ideally in a separate text file...I am using Notepad++

    Any ideas on how i can proceed?

    thanks in advance,
    Andy

  2. #2
    Non-Member
    Join Date
    Mar 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    programming languages like c# have features such as linq to search xml records.

  3. #3
    Always A Novice bronze trophy
    K. Wolfe's Avatar
    Join Date
    Nov 2003
    Location
    Columbus, OH
    Posts
    2,181
    Mentioned
    65 Post(s)
    Tagged
    2 Thread(s)
    If you're familiar with php: http://php.net/manual/en/function.si...oad-string.php

    Run a foreach loop and check your field, you can then do what you want with that xml segment


Tags for this Thread

Bookmarks

Posting Permissions

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