Thunderstone Software Document Search, Retrieval, and Management
Search:
Vortex Manual
 

xmlReaderMoveToAttribute

 

SYNOPSIS

    int xmlReaderMoveToAttribute(xmlReader reader, string name)

Parameters:

  • reader - the xmlReader object

  • name - the name of the attribute you want to move to

Returns:

  • 1 - success

  • 0 - attribute not found

  • -1 - other error


DESCRIPTION
xmlReaderMoveToAttribute() moves the parser on to the specified attribute of this function. This makes functions that operate on the "current node" (such as xmlReaderGetName() and xmlReaderGetContent()) take effect on the attribute, rather than the element itself.

If the attribute is not found, 0 is returned and the readers stays on the element.


EXAMPLE

    <$ret = (xmlReaderMoveToAttribute($reader, 'myAttr'))>


SEE ALSO
xmlReaderMoveToAttributeNumber, xmlReaderMoveToElement, xmlReaderMoveToFirstAttribute, xmlReaderMoveToNextAttribute, xmlReaderRead


Copyright © Thunderstone Software     Last updated: Mon Feb 18 10:28:15 EST 2013
 
Home   ::   Products   ::   Solutions   ::   How to Buy   ::   Support   ::   Contact Us   ::   News   ::   About
Copyright © 2013 Thunderstone Software LLC. All rights reserved.