Skip to main content

We have tried to read all 3 comments in start of this xml.

We use CXML-GET-COMMENT, but the call returns only with the first comment.

The strange thing is that len = 96 which is the correct lenght for all 3 comments.

<?xml version="1.0" encoding="UTF-8"?>

<!-- Metode: POST /driver/DriverLogin -->

<!-- Port: 443 -->

<!-- Platform:Android;Version:1.9.5 (1950);Location:NotSet-->

-<RequestLogin>

What can be the problem?

We have tried to read all 3 comments in start of this xml.

We use CXML-GET-COMMENT, but the call returns only with the first comment.

The strange thing is that len = 96 which is the correct lenght for all 3 comments.

<?xml version="1.0" encoding="UTF-8"?>

<!-- Metode: POST /driver/DriverLogin -->

<!-- Port: 443 -->

<!-- Platform:Android;Version:1.9.5 (1950);Location:NotSet-->

-<RequestLogin>

What can be the problem?

Good morning, Lone Noergaard

Can you please confirm which version of runtime you are using?

It may be that this feature is not working correctly.

I will investigate and let you know, but in the while I suggest you to contact your local Customer Care engineer and open a Case to report the behaviour you noticed: https://bit.ly/3jarIKc


Good morning, Lone Noergaard

Can you please confirm which version of runtime you are using?

It may be that this feature is not working correctly.

I will investigate and let you know, but in the while I suggest you to contact your local Customer Care engineer and open a Case to report the behaviour you noticed: https://bit.ly/3jarIKc

We use runtime 9.2.3.


We have tried to read all 3 comments in start of this xml.

We use CXML-GET-COMMENT, but the call returns only with the first comment.

The strange thing is that len = 96 which is the correct lenght for all 3 comments.

<?xml version="1.0" encoding="UTF-8"?>

<!-- Metode: POST /driver/DriverLogin -->

<!-- Port: 443 -->

<!-- Platform:Android;Version:1.9.5 (1950);Location:NotSet-->

-<RequestLogin>

What can be the problem?

Your expectation that individual comments retain their 'individuality' after a parser converts the document is not really supported by the XML specification.  Rather than depend on XML comments, perhaps you can use XML namespaces to uniquely identify data.


Your expectation that individual comments retain their 'individuality' after a parser converts the document is not really supported by the XML specification.  Rather than depend on XML comments, perhaps you can use XML namespaces to uniquely identify data.

In the description of CXML-GET-COMMENT it's mentioned that it will take all comments with in the return.
We have now put all comments in one comment and then we get it all.


In the description of CXML-GET-COMMENT it's mentioned that it will take all comments with in the return.
We have now put all comments in one comment and then we get it all.

Good morning, mr. Lone Noergaard

After your posts here, CXML-GET-COMMENT has been reviewed and perfected.

This development is scheduled for release in the next version 10.4.1 of ACUCOBOL-GT, due for November 2021.


Good morning, mr. Lone Noergaard

After your posts here, CXML-GET-COMMENT has been reviewed and perfected.

This development is scheduled for release in the next version 10.4.1 of ACUCOBOL-GT, due for November 2021.

Thanks - I thought we had used the command in the wrong way.