Skip to main content

C$XML

  • November 9, 2011
  • 4 replies
  • 0 views

[Migrated content. Thread originally posted on 07 November 2011]

acuCOBOL version: v8.1.1


I am trying to add a new child with name "B"(only one character) by


      *Add a element "B"
           call "C$XML" using CXML-ADD-CHILD
                  element-handle
                  "B"
           move return-code to element-handle. 


In my output, it shows me the new child "<>", but I expect to see "".

If I use any value length >= 2, it will show me the correct new child name.

I don't see the document mention the child name could not be one character.

Does anyone has similar issue?

4 replies

Stephen Hjerpe
  • Participating Frequently
  • 1100 replies
  • November 9, 2011

[Migrated content. Thread originally posted on 07 November 2011]

acuCOBOL version: v8.1.1


I am trying to add a new child with name "B"(only one character) by


      *Add a element "B"
           call "C$XML" using CXML-ADD-CHILD
                  element-handle
                  "B"
           move return-code to element-handle. 


In my output, it shows me the new child "<>", but I expect to see "".

If I use any value length >= 2, it will show me the correct new child name.

I don't see the document mention the child name could not be one character.

Does anyone has similar issue?
SUBJECT: C$XML fails to add attribute names of length 1
Change Number: ECN-3971
New Version: 8.1.2

Machines Affected: All
Known Versions Affected: 8.1.1

DESCRIPTION of problem or enhancement:

When adding attributes to an XML file with C$XML, attribute names of
length 1 would fail to be added, though the value was, causing an XML
file to be created that was not valid XML (and didn't have the info that
the COBOL program added).

  • Author
  • Rocketeer
  • 19312 replies
  • November 9, 2011

[Migrated content. Thread originally posted on 07 November 2011]

acuCOBOL version: v8.1.1


I am trying to add a new child with name "B"(only one character) by


      *Add a element "B"
           call "C$XML" using CXML-ADD-CHILD
                  element-handle
                  "B"
           move return-code to element-handle. 


In my output, it shows me the new child "<>", but I expect to see "".

If I use any value length >= 2, it will show me the correct new child name.

I don't see the document mention the child name could not be one character.

Does anyone has similar issue?
shjerpe originally wrote:
SUBJECT: C$XML fails to add attribute names of length 1
Change Number: ECN-3971
New Version: 8.1.2

Machines Affected: All
Known Versions Affected: 8.1.1

DESCRIPTION of problem or enhancement:

When adding attributes to an XML file with C$XML, attribute names of
length 1 would fail to be added, though the value was, causing an XML
file to be created that was not valid XML (and didn't have the info that
the COBOL program added).



Thanks,shjerpe.

But how could I get the version 8.1.2? My company bought v8.1.1, should we get 8.1.2 for free? Or we have to buy new version?

Stephen Hjerpe
  • Participating Frequently
  • 1100 replies
  • November 9, 2011

[Migrated content. Thread originally posted on 07 November 2011]

acuCOBOL version: v8.1.1


I am trying to add a new child with name "B"(only one character) by


      *Add a element "B"
           call "C$XML" using CXML-ADD-CHILD
                  element-handle
                  "B"
           move return-code to element-handle. 


In my output, it shows me the new child "<>", but I expect to see "".

If I use any value length >= 2, it will show me the correct new child name.

I don't see the document mention the child name could not be one character.

Does anyone has similar issue?
It would be best to contact your Sales representative. I believe it depends whether you have a maintenance contract or not. You could contact Customer Care and ask for that ECN to be patched into version 8.1.1 for you, I believe patching also depends ona maintenance contract.

  • Author
  • Rocketeer
  • 19312 replies
  • November 9, 2011

[Migrated content. Thread originally posted on 07 November 2011]

acuCOBOL version: v8.1.1


I am trying to add a new child with name "B"(only one character) by


      *Add a element "B"
           call "C$XML" using CXML-ADD-CHILD
                  element-handle
                  "B"
           move return-code to element-handle. 


In my output, it shows me the new child "<>", but I expect to see "".

If I use any value length >= 2, it will show me the correct new child name.

I don't see the document mention the child name could not be one character.

Does anyone has similar issue?
shjerpe originally wrote:
It would be best to contact your Sales representative. I believe it depends whether you have a maintenance contract or not. You could contact Customer Care and ask for that ECN to be patched into version 8.1.1 for you, I believe patching also depends ona maintenance contract.


Thanks again.