Jump to content

Parsing XML attributes


phatphish

This topic is 7522 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi,

I'm trying to parse a XML file to get the "RECORDID" so I can edit the db record using the CGI -edit parameter. The RECORDID is an attribute of the node <ROW>. Can someone show me how to parse the file to get that attribute? Here's the XML code-

<?xml version="1.0" encoding="UTF-8" ?>

<FMPDSORESULT xmlns="http://www.filemaker.com/fmpdsoresult">

<ERRORCODE>0</ERRORCODE>

<DATABASE>TestWebEvents.fp5</DATABASE>

<LAYOUT />

+ <ROW MODID="6" RECORDID="44524">

...(code)

</ROW>

</FMPDSORESULT>

Thanks!

Link to comment
Share on other sites

This topic is 7522 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.