Moving the Reader

For most situations there's only one way to move the reader: forward, via xmlReaderRead(), which moves to the next item type.

The exception is attributes. The reader does not stop on attributes when advancing with xmlReaderRead(). instead, all attributes of an element are read when the element is read. They can then be randomly accessed and iterated over as long as the reader remains on the element (which is until xmlReaderRead() is again called).


SEE ALSO
xmlReaderRead, xmlReaderMoveToAttribute, xmlReaderMoveToAttributeNumber, xmlReaderMoveToFirstAttribute, xmlReaderMoveToNextAttribute, xmlReaderMoveToElement


Copyright © Thunderstone Software     Last updated: Apr 15 2024
Copyright © 2024 Thunderstone Software LLC. All rights reserved.