Jump to content

[SOLVED] Is there a way to "query" xml?


ryeguy

Recommended Posts

I have an XML file and would like to perform something remotely similar to SQL select statements. Is there any native php way to do this? I know there is XQuery, but I am on a shared host and I don't know if I could get it installed. If there is no way to do this, would stepping through each node and checking the conditions be that intensive of a script?

Link to comment
https://forums.phpfreaks.com/topic/134994-solved-is-there-a-way-to-query-xml/
Share on other sites

I don't mean to just pull a specific element out of an xml file. I mean like how I can specify conditions for what nodes are pulled.

 

Something like SELECT customer_id FROM xml_file WHERE Age > 5 or whatever.

 

Although I didn't rigorously review your suggestions, I don't think that's it.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.