Page 1 of 1

XML

Posted: Wed Oct 30, 2002 2:20 am
by dman2kx
Well, it looks like this XML is kicking my ass. I'm trying to learn it but i'm having difficulties.

Anyways -- what i'm trying to do right now is this

MY XML FILE:
<?xml version = "1.0" encoding="Windows-1252" standalone="yes"?>
<Accounts>
<applicant>
<firstname>DAVID</firstname>
<lastname>MAZUR</lastname>
<login>DAVIDMAZUR</login>
<password>BRITTA</password>
</applicant>
</Accounts>


I have a xml file with multiple entries like <applicant></applicant>. I need to be able to go through the whole file and test to see if a login and password combo is correct. Its basically a login system.

Any help on this would be great.

Please show full code -- I need all the help i can get.

or if you know some xml php classes that would help -- also great.

Posted: Wed Oct 30, 2002 11:29 pm
by mydimension
here is a script that will load an xml document into an array: http://codewalkers.com/seecode/185.html
haven't tried it but it looks promising.