Hello,
I'm using xml parser to get data from xml file to mySql.
I get the data from the startElement function:
startElement($parser, $name, $attribs)
each time the startElement is called I store the tag attris (that what I need). all attris together are 1 row in my db.
The problem is that I want to enter to the same row another parameter which is not one of the attris (the xml file name for example).
of course startElement doesn't get this info and I don't know how send the function this addition.
I can't see the call for that function.
I even tried to make a global variable but with no results.
any ideas?
Thank you all
help xml parser
Moderator: General Moderators
Script problems and how to's should be posted in the normal forum. The advanced forum is more for theoretical or in depth discussion of programming techniques - please read the sticky thread.
A discussion on the different approaches to parsing xml might be an advanced topic, but a problem with a specific script is not.
Thanks.
A discussion on the different approaches to parsing xml might be an advanced topic, but a problem with a specific script is not.
Thanks.