Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

search large xml file

Status
Not open for further replies.

lin73

Programmer
Feb 17, 2006
110
SE
Hi

I need to search a 500 mb large xml file. What would be the best and fastest way to do this? (I work in .net)
 
Forgive me if I dont understand what you mean... could you explain that? I need to perform a search in a 500 Mb large xml file from a asp.net web page.
 
With your first question, that was the best anwser for me.

I think you need to provide more details about where do you have the file, what do you need to search ..


Cheers,
Dian
 
I need to search for a certain node inside the xml file
 
Its on my local test enviroment... c:\
 
Then again, use the find command that comes with MSDOS.

Cheers,
Dian
 

Hello Lin,

I think you need to be more clear about your question.
** What I think is if you use XSLT to search a node in
the XML file, because its linear seach its slow and
with X-Query too the situation is the same. What I read
somewhere was maintain a database instead of XML if the
data is too large, in that case data retreval is fast.

-> USE XSLT if you want to search a node in XML and as
Dian said, Find is also not a bad option to varify your
success.

-> If you are using C# and ASP.NET, then I am not sure but
in Java we use JAXP, and apply the XSLT on XML and same
this should be there in C# I am sure.

:: I think I am right !!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top