Re: Read a XML document in COBOL




<olivierdeman@xxxxxxxxx> wrote in message
news:1164365982.752040.128040@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hey,

I'm trying to read an XML document (see at the end of the page) in
COBOL (I'm using PerCobol). First I tried to read it doing this:

perform until einde = 1
display "|||"lijn"|||"
UNSTRING lijn DELIMITED BY '>' INTO
root

END-UNSTRING
MOVE root(2:2) TO rootTemp
UNSTRING root DELIMITED BY '<' INTO
vuller,element

END-UNSTRING

But thats a lot of work and its hard, now I heard that you can do it a
lot easier??? But how? I didn't find any informatie. So if you can help
me reading this document I thank you!!!

If you are running on a Microsoft platform and think that re-inventing the
wheel or re-discovering fire is a waste of your time, take a look at this...
http://www.chilkatsoft.com/ChilkatXml.asp

It's free, and is marginally better (in my opinion) than the Microsoft
component that is already on your machine.

Pete.

<snipped interesting Dutch XML file>


.



Relevant Pages

  • Re: xml schema (xsd) in cobol
    ... this is like saying you want to convert arbitrary text into COBOL ... COBOL source code specifies the behaviour of a computer program. ... specifies the structure of an XML document. ...
    (comp.lang.cobol)
  • Re: Read a XML document in COBOL
    ... COBOL (I'm using PerCobol). ... with specifics. ... If you're running in a Windows environment, you may be able to use the available Microsoft XML parser to create an XML document object. ... A man who believes in a God he doesn't see, or a man who's offended by a God he doesn't believe in?" ...
    (comp.lang.cobol)