Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xmerl_xpath(3erl) [linux man page]

xmerl_xpath(3erl)					     Erlang Module Definition						 xmerl_xpath(3erl)

NAME
xmerl_xpath - The xmerl_xpath module handles the entire XPath 1.0 spec XPath expressions typically occurs in XML attributes and are used to addres parts of an XML document. DESCRIPTION
The xmerl_xpath module handles the entire XPath 1.0 spec XPath expressions typically occurs in XML attributes and are used to addres parts of an XML document. The grammar is defined in xmerl_xpath_parse.yrl . The core functions are defined in xmerl_xpath_pred.erl . Some useful shell commands for debugging the XPath parser c(xmerl_xpath_scan). yecc:yecc("xmerl_xpath_parse.yrl", "xmerl_xpath_parse", true, []). c(xmerl_xpath_parse). xmerl_xpath_parse:parse(xmerl_xpath_scan:tokens("position() > -1")). xmerl_xpath_parse:parse(xmerl_xpath_scan:tokens("5 * 6 div 2")). xmerl_xpath_parse:parse(xmerl_xpath_scan:tokens("5 + 6 mod 2")). xmerl_xpath_parse:parse(xmerl_xpath_scan:tokens("5 * 6")). xmerl_xpath_parse:parse(xmerl_xpath_scan:tokens("-----6")). xmerl_xpath_parse:parse(xmerl_xpath_scan:tokens("parent::node()")). xmerl_xpath_parse:parse(xmerl_xpath_scan:tokens("descendant-or-self::node()")). xmerl_xpath_parse:parse(xmerl_xpath_scan:tokens("parent::processing-instruction('foo')")). DATA TYPES
docEntity() = xmlElement() | xmlAttribute() | xmlText() | xmlPI() | xmlComment() : nodeEntity() = xmlElement() | xmlAttribute() | xmlText() | xmlPI() | xmlNamespace() | xmlDocument() : option_list() : Options allows to customize the behaviour of the XPath scanner. Possible options are: {namespace, #xmlNamespace} : Set namespace nodes, from XmlNamspace, in xmlContext {namespace, Nodes} : Set namespace nodes in xmlContext. EXPORTS
string(Str, Doc) -> [docEntity()] | Scalar Equivalent to string(Str, Doc, []) . string(Str, Doc, Options) -> [docEntity()] | Scalar Equivalent to string(Str, Doc, [], Doc, Options) . string(Str, Node, Parents, Doc, Options) -> [docEntity()] | Scalar Types Str = xPathString() Node = nodeEntity() Parents = parentList() Doc = nodeEntity() Options = option_list() Scalar = xmlObj Extracts the nodes from the parsed XML tree according to XPath. xmlObj is a record with fields type and value, where type is boolean | number | string AUTHORS
<> xmerl 1.2.8 xmerl_xpath(3erl)

Check Out this Related Man Page

xmerl_eventp(3erl)					     Erlang Module Definition						xmerl_eventp(3erl)

NAME
xmerl_eventp - Simple event-based front-ends to xmerl_scan for processing of XML documents in streams and for parsing in SAX style. DESCRIPTION
Simple event-based front-ends to xmerl_scan for processing of XML documents in streams and for parsing in SAX style. Each contain more elaborate settings of xmerl_scan that makes usage of the customization functions. EXPORTS
file_sax(Fname::string(), CallBackModule::atom(), UserState, Options::option_list()) -> NewUserState Parse file containing an XML document, SAX style. Wrapper for a call to the XML parser xmerl_scan with a hook_fun for using xmerl export functionality directly after an entity is parsed. stream(Fname::string(), Options::option_list()) -> xmlElement() Parse file containing an XML document as a stream, DOM style. Wrapper for a call to the XML parser xmerl_scan with a continua- tion_fun for handling streams of XML data. Note that the continuation_fun , acc_fun , fetch_fun , rules and close_fun options cannot be user defined using this parser. stream_sax(Fname, CallBack::CallBackModule, UserState, Options) -> xmlElement() Types Fname = string() CallBackModule = atom() Options = option_list() Parse file containing an XML document as a stream, SAX style. Wrapper for a call to the XML parser xmerl_scan with a continua- tion_fun for handling streams of XML data. Note that the continuation_fun , acc_fun , fetch_fun , rules , hook_fun , close_fun and user_state options cannot be user defined using this parser. string_sax(String::list(), CallBackModule::atom(), UserState, Options::option_list()) -> xmlElement() Parse file containing an XML document, SAX style. Wrapper for a call to the XML parser xmerl_scan with a hook_fun for using xmerl export functionality directly after an entity is parsed. AUTHORS
<> xmerl 1.2.8 xmerl_eventp(3erl)
Man Page