help xml parser
Posted: Wed Aug 27, 2003 10:33 am
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
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