Link to home
Start Free TrialLog in
Avatar of msammis
msammis

asked on

How can I take the url / Xml dataa and use as a data source for a Php Form Page?

I have this url:
http://www.treas.gov/offices/enforcement/ofac/sdn/sdn.xml

I want do do a search on this data using a form. If any matches exist I want the results to say
what matches were found.

I am using Code Charge Studio so I might find a way to do this using that, but I'll probally need some help.
Avatar of Kokoglen
Kokoglen
Flag of United States of America image

I find jQuery to be really good for this sort of thing.
http://ajaxian.com/archives/ajaxian-featured-tutorial-parsing-xml-with-jquery

However, if you wanted something else, there is this:
http://www.openjs.com/scripts/xml_parser/

With jQuery they have selectors that you can find stuff in the XML as if it was CSS.  Like:
$("foo bar") would return all the of the <BAR> elements inside of <FOO> elements.
ASKER CERTIFIED SOLUTION
Avatar of Kokoglen
Kokoglen
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of msammis
msammis

ASKER

I'll test this out ... and get right back..