View previous topic :: View next topic |
Author |
Message |
sraj Beginner
Joined: 08 Aug 2006 Posts: 10 Topics: 4
|
Posted: Mon May 12, 2008 6:44 am Post subject: XML parser error |
|
|
I'm getting the below mentioned XML parsing error, for the example program mentioned in the manual.
Cobol version - ENTERPRISE COBOL FOR Z/OS 3.4.1
Where can I find details about this XML error? Any suggestion to fix the root cause of this problem?
---------------------------------------------------------------------
Neb1 ford XML Example
-------------------------------------------------------------------------
Excerpt of the xml document from the manual
1 xml-document.
2 pic x(39) value '<?xml version="1.0" encoding="ibm-1140"'.
2 pic x(19) value ' standalone="yes"?>'.
------------------------------------------------------------------------
Excerpt of the error
START OF DOCUMENT
EXCEPTION 000000012 AT OFFSET 006.
XML EVENT: EXCEPTION .
XML TEXT: <?XML .
XML DOCUMENT ERROR 000000012
-------------------------------------------------------------------------- |
|
Back to top |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Mon May 12, 2008 7:20 am Post subject: |
|
|
Internet Explorer cannot find www.neb1.ford.com
I would suggest that you can find details in the COBOL manual to start with _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
|
sraj Beginner
Joined: 08 Aug 2006 Posts: 10 Topics: 4
|
Posted: Mon May 12, 2008 8:02 am Post subject: |
|
|
Here is the link to the example in the manual.
XML Example
___________________________________________
XML was in upper case instead of lower case, so I was getting that XML parsing error.
___________________________________________ |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Mon May 12, 2008 3:27 pm Post subject: |
|
|
sraj,
You need to post the error messages you are getting.
Kolusu |
|
Back to top |
|
|
sraj Beginner
Joined: 08 Aug 2006 Posts: 10 Topics: 4
|
Posted: Tue May 13, 2008 6:31 am Post subject: |
|
|
kolusu wrote: | sraj,
You need to post the error messages you are getting.
Kolusu |
------------------------------------------------------------------------
Excerpt of the error
START OF DOCUMENT
EXCEPTION 000000012 AT OFFSET 006.
XML EVENT: EXCEPTION .
XML TEXT: <?XML .
XML DOCUMENT ERROR 000000012
--------------------------------------------------------------------------
___________________________________________
Contents of XML document was in upper case instead of lower case, so I was getting that XML parsing error(EXCEPTION 000000012).
___________________________________________ |
|
Back to top |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Tue May 13, 2008 7:26 am Post subject: |
|
|
messages - especially error messages - usually have a message id. This is needed so that people can look up the appropriate messages manual.
However, I believe you fixed the problem - a point that Kolusu missed because it looks like your signature. _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
|
Cogito-Ergo-Sum Advanced
Joined: 15 Dec 2002 Posts: 637 Topics: 43 Location: Bengaluru, INDIA
|
Posted: Fri May 30, 2008 11:54 am Post subject: |
|
|
Don't mean to nit-pick but....
Actually, the part about the contents of the document being in upper case is not really accurate as tags and data can be in any case. But, the opening part of the document Code: | <?xml version="1.0"?> | should be in lower case. _________________ ALL opinions are welcome.
Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes. |
|
Back to top |
|
|
|
|