Highlighted
Absent Member.
Absent Member.
373 views

[archive] XML PARSE statement issue

[Migrated content. Thread originally posted on 14 July 2010]

I am trying to use the XML PARSE statement (ACU v 8.1.2) and I am not sure how it works. Does anybody has a small example for me ? I have coded the following :

WORKING-STORAGE.
1 M.
2 A pic x(21) value ''.
2 B pic x(24) value 'Hello World'.

PROCEDURE DIVISION.

Main Section.

XML PARSE M
PROCESSING PROCEDURE IS ProcessXMLEvent
ON EXCEPTION PERFORM XML-Exception
END-XML

However, at run time ProcessXMLEvent always receives :
XML-CODE = 23
XML-EVENT = EXCEPTION
XML-TEXT = Unknown symbol

I don't see what the problem is.....

Thanks,
- Peter-
0 Likes
1 Reply
Highlighted
Absent Member.
Absent Member.

RE: [archive] XML PARSE statement issue

see attachment on how to use xml parse
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.