Solved

Search XML file contents

Posted on 2006-07-05
4
177 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

Industry Leaders: 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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
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.

740 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