Tags:
create new tag
view all tags

.XML WRITER ADD ATTR

This subroutine adds attribute to the most recent opened element in the given XML file. Added in 6.2.0


Usage:

      PASS         <XML_stream_name>          FIELD            SHARE? N
      PASS         <XML_attribute_name>       FIELD            SHARE? N
      PASS         <XML_attribute_value>      FIELD            SHARE? N
      GOSUB    --- .XML WRITER ADD ATTR   
* Check for errors
IF --- .XML WRITER ADD ATTR NE

Description:

This subroutine adds attribute/value pair to the most recent opened element in an XML file.

<XML_stream_name> is the name of XML stream that has been assigned during .XML WRITER OPEN api. This field is required and cannot be more than 22 characters.

<XML_attribute_name> is the attribute name you want to add to the most recent opened element. This parameter is required and cannot be more than 70 characters.

<XML_attribute_value> is the value of the attribute. This is required, and cannot be larger than 32767 (32k) characters.

You can check the value of --- .XML WRITER ADD ATTR field after the api call to check for errors.

See also . XML WRITER ADD DATA

Comments:

Read what other users have said about this page or add your own comments.


Topic revision: r1 - 2022-05-25 - MisaghKarimi
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback