Hamish Mackenzie wrote:

How do you feel about having a node_reference instead.

What are the access differences? I.e. could you use '.' to access attributes/methods as opposed to '->'?


// libxml2
class node_reference
{
private:
  xmlNodePtr node_;
};
[snip]

boost::xml::dom::node_reference mynode = doc.selectNode( "/h:*[1]" );

I am not that bothered *how* it is implemented, so long as it provides a decent enough interface.


I was also showing how you could make it more portable by not explicitly using a
Document * doc = ...;
style code fragment.


Regards,
Reece

_________________________________________________________________
Find a cheaper internet access deal - choose one to suit you. http://www.msn.co.uk/internetaccess


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to