Solved

Search XML file contents

Posted on 2006-07-05
4
178 Views
Last Modified: 2009-12-16
i have a XML file structure with many elements.  some elements have nested elements.  It is possible to search the contents/data between element tags of a XML file?

if so how?

a "detailed description" please!
0
Comment
Question by:ellandrd
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 49

Expert Comment

by:Roonaan
ID: 17046556
PHP4 or PHP5?

-r-
0
 
LVL 16

Author Comment

by:ellandrd
ID: 17048895
PHP5
0
 
LVL 16

Author Comment

by:ellandrd
ID: 17051157
?
0
 
LVL 49

Accepted Solution

by:
Roonaan earned 500 total points
ID: 17052320
In PHP5 you can most likely use the simplexml class. First try and see if the string you are looking for is in the xml structure at all (using stristr or similar). Then use simplexml to find out where in the xml.

-r-
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question