Reputation: 7
My XML File size is 252 KB. where I Try to search using fisrt_node function using the below statement
root_node = doc.first_node("cdf",0,false);
where cdf is my root node then the program crashes giving segmatation fault error. if I search node that does not exist in my xml then it simply returns null.
I hope someone helps me
Upvotes: -1
Views: 199
Reputation: 7
Issue is with the root_node variable. if I make it global it gives error and if I make it local it works fine for me.
Upvotes: -1