var searchIndex = {}; searchIndex["rquery"] = {"doc":"This library offers the ability to represent XML documents as DOM trees,\nallowing querying with CSS selectors.","items":[[3,"Document","rquery","The DOM tree representation of the parsed document.",null,null],[3,"CompoundSelector","","Represents a component of a parsed CSS selector is used to match a single\nelement.",null,null],[12,"scope","","The scope of the selector.",0,null],[12,"parts","","The individual parts that make up the compound selector.",0,null],[3,"UnexpectedTokenError","","An error which is returned when parsing a selector encounters an unexpected\ntoken",null,null],[12,"0","","",1,null],[3,"Element","","Represents a single element in the DOM tree.",null,null],[4,"MatchType","","The match type for an attribute selector.",null,null],[13,"Equals","","Indicates that the match must be identical",2,null],[4,"Scope","","The scope of the `CompoundSelector`.",null,null],[13,"DirectChild","","Implies that the selector must be a direct descendent of the previous\nmatch (e.g. `body > header`).",3,null],[13,"IndirectChild","","Implies that the selector is a descendent of the previous match (e.g.,\n`body header`).",3,null],[4,"Selector","","The individual parts of the `CompoundSelector`. For example, the selector\n`input[type="radio"]` has two parts, the `TagName` and `Attribute`\nselectors.",null,null],[13,"Id","","Represents an id selector (e.g. `#the-id`)",4,null],[13,"TagName","","Represents a tag name selector (e.g. `input`)",4,null],[13,"Attribute","","Represents an attribute selector (e.g. `[type="radio"]`)",4,null],[4,"SelectError","","Errors which can be returned when performing a select operation.",null,null],[13,"ParseError","","Returned when the selector could not be parsed successfully.",5,null],[13,"NoMatchError","","Returned when there were no matches for the selector.",5,null],[11,"eq","","",1,null],[11,"ne","","",1,null],[11,"fmt","","",1,null],[11,"clone","","",1,null],[11,"fmt","","",0,null],[11,"clone","","",0,null],[11,"fmt","","",3,null],[11,"eq","","",3,null],[11,"clone","","",3,null],[11,"fmt","","",4,null],[11,"clone","","",4,null],[11,"eq","","",2,null],[11,"fmt","","",2,null],[11,"clone","","",2,null],[11,"parse","","Parses the string and converts it to a list of `CompoundSelector`s.",0,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"fmt","","",6,null],[11,"clone","","",6,null],[11,"new_from_xml_stream","","Creates a new document from a byte stream.",6,{"inputs":[{"name":"r"}],"output":{"name":"result"}}],[11,"new_from_xml_string","","Creates a new document from a string.",6,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"new_from_xml_file","","Creates a new document from a file.",6,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"number_of_elements","","Returns the total number of elements in the document.",6,null],[11,"select_all","","Searches the document for elements matching the given CSS selector.",6,null],[11,"select","","Just like `select_all` but only returns the first match.",6,null],[11,"fmt","","",7,null],[11,"clone","","",7,null],[11,"eq","","",5,null],[11,"ne","","",5,null],[11,"fmt","","",5,null],[11,"clone","","",5,null],[11,"select_all","","Searches the elements children for elements matching the given CSS\nselector.",7,null],[11,"select","","Just like `select_all` but only returns the first match.",7,null],[11,"children_iter","","Returns an iterator over the element’s direct children.",7,null],[11,"children_deep_iter","","Returns an iterator over all the element’s children, including indirect\nchild elements.",7,null],[11,"subtree_size","","Returns the size of the DOM subtree, including the current element.",7,null],[11,"tag_name","","Returns the name of the element’s tag.",7,null],[11,"attr","","Returns the value of the element attribute if found.",7,null],[11,"text","","Returns the text contained within the element.",7,null],[11,"matches","","Returns true if the element matches the given selector.",7,null]],"paths":[[3,"CompoundSelector"],[3,"UnexpectedTokenError"],[4,"MatchType"],[4,"Scope"],[4,"Selector"],[4,"SelectError"],[3,"Document"],[3,"Element"]]}; initSearch(searchIndex);