-
SitePoint Enthusiast
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
-
programming languages like c# have features such as linq to search xml records.
-
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks