Re: Searching XML files

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Bill James (wgjames_at_mvps.org)
Date: 03/12/05


Date: Fri, 11 Mar 2005 20:42:26 -0700

You might want to check out LogParser. Don't let the name fool you, it's useful for a lot more than log files, including XML. If you already have some knowledge of query language the learning curve will be shorter.

Download: http://www.microsoft.com/downloads/details.aspx?familyid=890cd06b-abf8-4c25-91b2-f8d975cf8c07&displaylang=en

The Unofficial Log Parser Support Site: http://www.logparser.com/index.htm.

-- 
Bill James
Microsoft MVP - Shell/User
Windows VBScript Utilities » www.billsway.com/vbspage/
Windows Tweaks & Tips » www.billsway.com/notes_public/
"SF" <SF@discussions.microsoft.com> wrote in message news:E04E2CEC-DA93-4614-A019-34A71C0C1E4F@microsoft.com...
> Thanks for the reply. I just read the link which you had sent. The links 
> talks about posting the data to th website.
> 
> I have around 1500 xml files in the folder which composes a book. The way it 
> should work is if the user types a keyword in a search box
> for example Test in the search box it should search all the 1500 XML files 
> and return the name of only those xml files which have Test in the xml 
> document. Please suggest if the above component whic you have suggested will 
> work in my scenario.
> 
> thanks,
> 
> "mr_unreliable" wrote:
> 
>> hi SF,
>> 
>> There is a COM package, whose members are readily usable from script.
>> 
>>      Dim xmlHTTP : Set xmlHTTP = CreateObject("Microsoft.XMLHTTP")
>> 
>> It is well documented on msdn:
>> 
>> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/xmmscXML.asp
>> 
>> and, other websites:
>> 
>> http://www.4guysfromrolla.com/webtech/110100-1.shtml
>> 
>> In fact, if you know how to search the newsgroup archive, you can find
>> example code postings from this very newsgroup!!!
>> 
>> cheers, jw
>> 
>> SF wrote:
>> > Hi All,
>> > I have around 1500 xml file in a folder and want to search for keywords in 
>> > the file. Please help me how to do this. Can it be done using Microsoft index 
>> > server ?? I am new to xml ....Please help
>> > 
>> > thanks,
>>


Relevant Pages

  • Re: Design of XML log
    ... An entry contains a title, a message, and an exception with its causes. ... Assuring no loss of data would be harder than doing XML log i think. ... 1a/ log files with "_complete_" in the name are put in the list "completeLogs" ... 2a/ if there are incomplete logs, ask the user if he's using several simultaneous instances ...
    (comp.lang.java.programmer)
  • Re: Searching a huge log file efficiently ?
    ... "Ishan De Silva" wrote in message ... The log files get refreshed on a daily basis and therefore ... > persistence in an RDBMS is not required. ... XML may be the latest thingamabob, but I do not see why you would ever use ...
    (microsoft.public.vc.mfc)
  • Re: Whats an efficient way of insertring elements into an XML document
    ... >> When writing stuff like log files in xml i leave off the document level tags. ... > could 'trim' the log file every time you are about to add an event. ...
    (microsoft.public.dotnet.framework)
  • Re: using VBScript + a config
    ... If you're new to scripting I would suggest you look at PowerShell. ... file (XML Format) ... the directory of the log files ... email address where i could forward the found string enteries. ...
    (microsoft.public.windows.server.scripting)
  • Re: xml reader?
    ... So that needs these log files to be placed ... this is our file server that does ... how to make a XML file user readable? ... >>files that are in XML format. ...
    (comp.unix.admin)