lmi
[Top][All Lists]
Advanced

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

Re: [lmi] an xml schema for (single|multiple)_cell_document file XML for


From: Václav Slavík
Subject: Re: [lmi] an xml schema for (single|multiple)_cell_document file XML format
Date: Mon, 27 Feb 2012 16:43:46 +0100

On 27 Feb 2012, at 16:32, Vadim Zeitlin wrote:
> FWIW I don't like this approach very much. The information about the
> number of cells is already in the file, why do we need to keep a separate
> hint about it? Couldn't we just count the cells first, before processing
> them?

I agree; it's both simple and efficient to do that in xmlwrapp with 
xml::node::elements():

  xml::const_nodes_view cells(particular_cells_node.elements("cell"));
  size = std::distance(cells.begin(), cells.end());

Regards,
Vaclav


reply via email to

[Prev in Thread] Current Thread [Next in Thread]