Liquid XML Data Binder 2019
C++ begin - Collection
Liquid XML Data Binder (C++, Java, VB6) > Reference > C++ > Reference > CAttributeCol > C++ begin - Collection
typedef LtXmlLib17::CLtIterator<LtXmlLib17::XXXX> iterator;
iterator begin();
  Description  
    Each collection class contains an iterator. The iterater is provided to allow you sequencially move through the contents of the collection. They behave in the same way as stl iterators. Also see end and iterator

begin() returns the iterator that is at the beginning of the collection.
It is posible to to retrieve an object from this iterator by de-referencing it ie *itr.

Sample

for (CAttribute::iterator itr = spParentElement->GetAttributes()->begin();
         itr != spParentElement->GetAttributes()->end();
         itr++)
{
        CAttributePtr spAttr = (*itr);

        std::string strName = spAttr->GetName();
        ...
}