preload

Service Functions – XML (WinRunner, TSL)

Posted by Albert Gareev on Aug 25, 2007
0
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 [...] ...

XML output with WinRunner – 4

Posted by Albert Gareev on Aug 22, 2007
0
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 & "  " & "<" [...] ...

XML output with WinRunner – 3

Posted by Albert Gareev on Aug 20, 2007
0
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&"-->");  ...

XML output with WinRunner – 2

Posted by Albert Gareev on Aug 18, 2007
0
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, [...] ...

XML output with WinRunner – 1

Posted by Albert Gareev on Aug 15, 2007
0
Root page: Service Functions – XML Parent page: Service Functions – XML / WinRunner Declarations and definitions #xml rectricted characters  static const _XML_RESTRICTED[] = {  0 = 5,  1 = {"&", "&amp;"},  2 = {"\"", "&quot;"},  3 = {">", "&gt;"},  4 = {"<", "&lt;"},  5 = {" ", " "} # web space char  }; ...

Link-a-log: XML/XSL/XPath

Posted by Albert Gareev on Aug 10, 2007
0
XML DOM Index – DevGuru XML Queries and Transformations – Developer Fusion XSLT Online Guide and FAQ – by Dave Pawson Quick Reference Cards – Mulberry Technologies ...
Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported
This work by Albert Gareev is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported.