-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not handle processing instructions #30
Comments
Thanks for reaching out! Could you provide an example of missing attribute freeing? Preferably a patch :-) |
Attached is what I made of it. You already had a xml_attribute_free which was used in xml_node_free. I added a xml_attributes_free function which is called in the xml_parse_node function when needed |
Thanks @pecostm32, could you provide an xml fragment which is handled by this code? |
This is the file I'm working with |
@pecostm32 to make sure I understand you correctly: Are you just concerned with |
Next to not handling comments it also does not recognize processing instructions.
An easy way to overcome this is to use a do while loop in the node parsing like so:
//Need a do while loop to find a proper top tag and allow skipping of processing instructions or comments
do
{
/* Parse open tag
*/
tag_open = xml_parse_tag_open(parser);
} while(!tag_open);
Another issue is the freeing of the attributes.
The text was updated successfully, but these errors were encountered: