Skip to main content
I am trying to parse an XML file. I tried to follow the documentation on AcuXML, the XML2FD sets the file to binary sequential I made the changes to cobol config but when i read the file its not looking at the tags its looking like just a sequential stream of data. I am going to look at RMnet and XML Parse next. Any opinions on which is best for XML parsing and any help with AcuXML would be appreciated. Thanks in advance
I am trying to parse an XML file. I tried to follow the documentation on AcuXML, the XML2FD sets the file to binary sequential I made the changes to cobol config but when i read the file its not looking at the tags its looking like just a sequential stream of data. I am going to look at RMnet and XML Parse next. Any opinions on which is best for XML parsing and any help with AcuXML would be appreciated. Thanks in advance

The stream of data should be the data within the tags <my-data>Hello</my-data> when using AcuXML you would see Hello. There is also the C$XML library routine to get XML data.


I am trying to parse an XML file. I tried to follow the documentation on AcuXML, the XML2FD sets the file to binary sequential I made the changes to cobol config but when i read the file its not looking at the tags its looking like just a sequential stream of data. I am going to look at RMnet and XML Parse next. Any opinions on which is best for XML parsing and any help with AcuXML would be appreciated. Thanks in advance

You might want to look at this: community.microfocus.com/.../xml-sample-program-showing-how-to-read-an-xml-file


I am trying to parse an XML file. I tried to follow the documentation on AcuXML, the XML2FD sets the file to binary sequential I made the changes to cobol config but when i read the file its not looking at the tags its looking like just a sequential stream of data. I am going to look at RMnet and XML Parse next. Any opinions on which is best for XML parsing and any help with AcuXML would be appreciated. Thanks in advance

I see the tags and everything in the data stream with acuxml.  I may have missed something in the setup... Thanks for the link i'll be sure to check that one out


I am trying to parse an XML file. I tried to follow the documentation on AcuXML, the XML2FD sets the file to binary sequential I made the changes to cobol config but when i read the file its not looking at the tags its looking like just a sequential stream of data. I am going to look at RMnet and XML Parse next. Any opinions on which is best for XML parsing and any help with AcuXML would be appreciated. Thanks in advance

When using AcuXML, did you create Data dictionaries .. To create the XFDs, you specify "-Fa" on the command line when you compile your COBOL source. This option signals the compiler to create an XFD file for every indexed, relative, or sequential file contained in the program. To prevent naming errors, you should also include the "-Fc" option, which tells the compiler that the field names in the resulting XFDs must match the element names in the COBOL source exactly.  


I am trying to parse an XML file. I tried to follow the documentation on AcuXML, the XML2FD sets the file to binary sequential I made the changes to cobol config but when i read the file its not looking at the tags its looking like just a sequential stream of data. I am going to look at RMnet and XML Parse next. Any opinions on which is best for XML parsing and any help with AcuXML would be appreciated. Thanks in advance

Then start the COBOL program in the debugger (wrun32 -dle error-file-name myprog.acu ) in the debugger enter tf 9 and then enter t flush - when your program exits, the error-file-name will now show what config variables you used and the file i-o.