Jens Müller schrieb:
I tried to read a GraphML file using Douglas' code and the following:
I am not even really interested in the d0 properties ...
Now I did that:
static void
on_end_element(void* user_data, const XML_Char *c_name)
{
self_type* self = static_cast(user_data);
std::string name(c_name);
bool stored = false;
if (name == "data") {
typename std::map::iterator v =
self->vertex.find(self->active_descriptor);
if (v != self->vertex.end()) {
// stored = put(self->active_key, self->dp, *v,
self->character_data);
} else {
typename std::map::iterator e =
self->edge.find(self->active_descriptor);
if (e != self->edge.end())
;// stored = put(self->active_key, self->dp, *e,
self->character_data);
}
if (!stored) self->unhandled_data(self->active_key);
}
}
(two lines commented out)
But I have to take a closer look ...
Probably sooner or later I'll get a graph where I need some properties.