PHP: Search XML and show breadcrumbs to string found in output?

jumpingrightin

New member
I have an .xml file I need to do string searches using PHP and be able to output the results showing the element tree of the found string.

So if looking for the string 'foo' I need output that would show each occurrence of the string 'foo' and it's relationship to where it was found. I'm thinking like breadcrumbs something like this:

<table_structure name="blah"> ==> <field name="stuff"> ==> foo

Thanks!
 
Back
Top