How do I search nodes of XML document for text? Or convert to SQL tables?

Posted by netefficacy on Stack Overflow See other posts from Stack Overflow or by netefficacy
Published on 2011-01-16T22:46:43Z Indexed on 2011/01/16 22:53 UTC
Read the original article Hit count: 192

Filed under:
|
|
|
|

Hi

I have an XML file and would like to run a search on the nodes for text that matches user input. My options are:

  1. Convert the XML file to a SQL table and run the search against the table records.

  2. Search the XML nodes themselves.

The problem is that I cannot find a open source conversion utility, nor can I figure out how to search the XML nodes.

I can use PHP, Ruby, or Python for the search code.

Any pointers on how can I do 1 or 2?

Thanks

© Stack Overflow or respective owner

Related posts about sql

Related posts about Xml