Solved

Search XML file contents

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Post xml via PHP Soap Client 3 37
.php tree directory? 5 54
Saving image into server to get url later 1 30
php call to a non-object 3 31
Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

947 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now