[libxml++] Re: [Libxmlplusplus-general] dom_parser example using Visitor pattern



Christophe de VIENNE wrote:

plus a 'Visitor' base class that has one 'visit' method per node type.
(to be implemented by users)


Implemented by users, but with a default empty implementation I think.

yep.

We could then make a visitor which will 'see' only the TextNodes of a Document for example.

right.

Stefan





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