I'm new to GSOAP, so there might be something obvious here. But I really could not find his solution in the GSOAP docs.
I need to know how I silently ignore an unknown node in my xml in GSOAP without affecting other nodes.
For example: I have a class
class gsoap_ex { int foo; char bar; }
and below XML for it:
<gsoap_ex> <foo>foo_value</foo> <unknown>unknown_value</unknown> <bar>bar_value</bar> </gsoap_ex>
At the moment, my gsoap parses xml until it reaches an unknown node, after which it will return without further parsing it.
print_after_parsing(gsoap_ex *obj) { cout<<obj->foo; cout<<obj->bar; }
So, in my previous function, this shows the value of foo, but the value of bar is not set.
How do I achieve this?
c ++ gsoap
foobar
source share