thanks for your replay
in fact, i need to read and extract data from a large xml file (about 3000 lines) which is like this:
for example: i need to extract val,
then extracting some elements look like this <name>jon</name>
and so on. the problem is i should extract over 100 elements and values form this large file, also these data can be found in many elements , not only from one part or one node.
so imagine how many founctions i need to exctract over 100 elements and values attributes,.....
and after exctracting these values, i must insert them into mysql database.
the question is: do you any idea about how i can extract them without needing to repeat the fonction over 100 times for the extraction. i.e create class to extract and insert the values dirctly into database.
thank you again,