Searching inside XML files from Windows Explorer

I have a Windows XP SP2 system where the Windows Explorer search is not able to find text in XML files. Is there some setting that enables searching in XML files? Search does find my text in .txt and .doc files in the same folder.

1

4 Answers

I know this doesn't directly answer your question, but if you're prepared to install some new software Notepad++ supports searching in files and will search in xml files quite happily.

AstroGrep should be able to find text within XML, or any other text files.

You can of course using Windows Search as show in the image below. After you set it up, you can use Windows extended/advanced search parameters in the file explorer search box as follows:

type:xml content:"search-words"

But, I noticed that this will not find the XML element itself, it will only find results by the element data and property values. Which is a kind of strange thing. So, best to use Notepad++ as it works very well.

Also, I noticed later that you can search by xml field name and value as follows:

type:xml fieldname:"field-name" field:"field-value"

Which is really good thing, but honestly, I am not getting consistent results, so use it as a guide only.

Setup Windows Search and Indexing

I like Search and Replace

4

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like