Re: Unhandled node types (was: Re: [libxml++] [ libxmlplusplus-Patches-719921 ] patch to make it compile on NetBSD)



I feel the assert makes the library less useful in its current state. The
code may never need to access unsupported node types, since the really
useful nodes are supported, but the assert will exit the program anyway.

So until all types are supported, or explicitly ignored, I think the warning
message _was_ the most useful solution. silently ignoring the unknown types
comes second.

-eff

----- Original Message -----

So now an assert replace the warning message.
This means that some document containing some node type we do not wrap may
crash libxml++.
I guess that all the xmlElementType ending with _NODE has to be handled if
we
want the assert not to be reached.
So the decision to make for now is do we
 1) implement the missing types
 2) remove the assert and silently ignore unknown types.

Comments / ideas are welcome





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]