Adding attribute with C$XML with length 0

I use v10.0.0 AcuCobol


call "C$XML" using CXML-ADD-ATTRIBUTE
element-handle
attribute-name
attribute-value
attribute-value-length.

attribute-value is spaces
attribute-value-length = 0


The attribute value will have the previous attribute value. Is this a bug in AcuCobol 10.0.0? When attribute-value-length is set to 1 attribute-name = " " will occur in the xml file.

  • initial-data.

               move "george" to attribute-name.

               move "of the jungle" to attribute-value

               move 15 to    attribute-value-length.

    test-cxml.            

              call "C$XML" using CXML-ADD-ATTRIBUTE

                    element-handle

                    attribute-name

                    attribute-value

                    attribute-value-length.

    reset-data.

                initialize

                   attribute-name attribute-value attribute-value-length.

                perform  test-cxml.

    This seems to work.