FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
ElementPtr FB::DOM::Element::getChildNode ( const int  idx) const
virtual

Gets a child node.

Author
Richard Bateman
Date
10/15/2010
Parameters
idxZero-based index of the node to fetch.
Returns
The child node.

Definition at line 71 of file ScriptingCore/DOM/Element.cpp.

72 {
73  ElementPtr retVal(getElement("childNodes")->getElement(idx));
74  return retVal;
75 }
virtual ElementPtr getElement(const std::string &name) const
Gets a child element of the specified name.
boost::shared_ptr< Element > ElementPtr
shared_ptr for a FB::DOM::Element