XML

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
dman2kx
Forum Newbie
Posts: 1
Joined: Wed Oct 30, 2002 2:20 am

XML

Post 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.
User avatar
mydimension
Moderator
Posts: 531
Joined: Tue Apr 23, 2002 6:00 pm
Location: Lowell, MA USA
Contact:

Post 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.
Post Reply