Using an XML File
- From: "Guillaume Lucazeau" <glucazeau@xxxxxxxxx>
- Date: 24 Mar 2006 03:36:17 -0800
Hello,
I'm trying to parse an XML File with enterprise Cobol for z/OS
The code is ok, I'm using this example to handle events :
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/FRAMESET/igy3pg20/5.0
But I've got a problem :
if I have some new lines between roots tag and others tags, there is an
exception (code 2) at the execution
For example, exception with this :
<?xml version="1.0" encoding="ibm-1140" standalone="yes" ?>
<personnes>
<personne><nom>Hauchon</nom><prenom>Paul</prenom></personne>
</personnes>
OK with this :
<?xml version="1.0" encoding="ibm-1140" standalone="yes" ?>
<personne><nom>Hauchon</nom><prenom>Paul</prenom></personne>
Does anybody know what's the problem ?
Is there a special File Definition to define an XML file ?
I have read a lot of documentation and a lot of messages in this group,
but I'm a newbie in Cobol, and I haven't found any answers
I would be great if someone could explain me how define an XML file :)
Thank you
.
- Follow-Ups:
- Re: Using an XML File
- From: Don Leahy
- Re: Using an XML File
- Prev by Date: Re: Any comments?
- Next by Date: Re: Using an XML File
- Previous by thread: Lowercase equivalent to uppercase, or vice versa
- Next by thread: Re: Using an XML File
- Index(es):
Relevant Pages
|