Posted by Albert Gareev on Aug 25, 2007
Root page: Service Functions – XML In the code examples I present I often refer to routine functions. In my framework I have specialized libraries to call from. In my blog I maintain the similar structure. Creating XML file with WinRunner Definitions and initialization Create / Write XML Node Write body text and add comment node [...] ...
Posted by Albert Gareev on Aug 22, 2007
Root page: Service Functions – XML Parent page: Service Functions – XML / WinRunner Write single child XML node public function xml_node_child_attr_write(in xml_file, in tag, in text, in attr_tag, in attr_value) { auto rc, s_line; if (xml_write_mode) { rc = file_open(xml_file, FO_MODE_APPEND); if (rc != E_OK) return(rc); s_line = node_indent & " " & "<" [...] ...
Posted by Albert Gareev on Aug 20, 2007
Root page: Service Functions – XML Parent page: Service Functions – XML / WinRunner Write child comment public function xml_comment_write(in xml_file, in comment_str) { auto rc; if (xml_write_mode) { rc = file_open(xml_file, FO_MODE_APPEND); if (rc != E_OK) return(rc); file_printf(xml_file, "%s\r\n", node_indent & " " & "<!--"&comment_str&"-->"); ...
Posted by Albert Gareev on Aug 18, 2007
Root page: Service Functions – XML Parent page: Service Functions – XML / WinRunner Create XML Node public function xml_node_create(inout dtNode[], in tag, in text) { delete dtNode[]; dtNode["tag"] = tag; dtNode["text"] = xml_str_norm(text); } Add Attributes to XML Node public function xml_node_attr_add(inout dtNode[], in attr_tag1, in attr_value1, in attr_tag2, in attr_value2, in attr_tag3, in attr_value3, [...] ...
Posted by Albert Gareev on Aug 15, 2007
Root page: Service Functions – XML Parent page: Service Functions – XML / WinRunner Declarations and definitions #xml rectricted characters static const _XML_RESTRICTED[] = { 0 = 5, 1 = {"&", "&"}, 2 = {"\"", """}, 3 = {">", ">"}, 4 = {"<", "<"}, 5 = {" ", " "} # web space char }; ...
Posted by Albert Gareev on Aug 10, 2007
XML DOM Index – DevGuru XML Queries and Transformations – Developer Fusion XSLT Online Guide and FAQ – by Dave Pawson Quick Reference Cards – Mulberry Technologies ...