falcong / pugixml

Automatically exported from code.google.com/p/pugixml
0 stars 0 forks source link

After multiple calls with first_element_by_path the original node seems to be violated #242

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Will submit this issue just so, let me know if it is still maintained!

Original issue reported on code.google.com by KJMvanM...@gmail.com on 16 Oct 2014 at 11:38

GoogleCodeExporter commented 9 years ago
Can you give an example of your code that reproduces the problem? Or describe 
it in more detail.

first_element_by_path is not very frequently used but it should work - if there 
are any bugs in it I'll fix them.

Original comment by arseny.k...@gmail.com on 16 Oct 2014 at 11:48

GoogleCodeExporter commented 9 years ago
Thank you for your quick respond!

While I was making a nice example for you to take a look at I re-read the 
manual.
In this manual it was stated that the document should be not deleted otherwise 
the nodes will have undefined behaviour. This is exactly what went wrong.
Corrected (document to heap :))

Thanx for being so polite!

Cheers 

Ruud

Original comment by KJMvanM...@gmail.com on 19 Oct 2014 at 9:44

GoogleCodeExporter commented 9 years ago
Good to know that it's not a bug! Thanks.

Original comment by arseny.k...@gmail.com on 24 Oct 2014 at 2:34