?
Solved

Search XML file contents

Posted on 2006-07-05
4
Medium Priority
?
180 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 2000 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

718 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