Hi,
I am using Libxml2 to parse Xml files in my Iphone project.
In using Libxml2, there are some called back functions. One of them is charactersFoundSAX function. This function will get called when characters was found. I noticed that this function not only called between start element and end element of a XML file, but also get called before start element and after end element. Is it correct? Is it the actual behaviour of charactersFoundSAX called back function?
I also noticed that between start and end element of an XML file, charactersFoundSAX function mostly will get called one time, but sometimes I noticed that it get called a few times between start and end element. Why? For the number of times of charactersFoundSAX function get called, is it depends on the number or length of characters?
I hope someone can give me some ideas and opinions. Any comments regarding parsing XML using Libxml2 are welcome.
Thanks a lot.
I am using Libxml2 to parse Xml files in my Iphone project.
In using Libxml2, there are some called back functions. One of them is charactersFoundSAX function. This function will get called when characters was found. I noticed that this function not only called between start element and end element of a XML file, but also get called before start element and after end element. Is it correct? Is it the actual behaviour of charactersFoundSAX called back function?
I also noticed that between start and end element of an XML file, charactersFoundSAX function mostly will get called one time, but sometimes I noticed that it get called a few times between start and end element. Why? For the number of times of charactersFoundSAX function get called, is it depends on the number or length of characters?
I hope someone can give me some ideas and opinions. Any comments regarding parsing XML using Libxml2 are welcome.
Thanks a lot.