Jim Miller wrote:
> I await suggestions/flames.
As suggested before, you really need to say something, at least, about:
- namespaces (including for attributes): the most acceptable solution is
probably to do nothing about them and remove the first argument to the
XmlElement constructor;
- encoding of strings in the internal representation: probably always utf-8;
- whether the parser may create XmlMany nodes: probably no.
Other remarks:
- a 'pull' API (where the client asks the parser for more parsing
events/tokens) is more convenient than the SAX-like 'push' API. You
might want to add such an API to you spec;
- having a common spec for several libs makes more sense if they can
share common types; maybe you should use polymorphic variants instead of
regular ones?
-- Alain