× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I doubt that the issue is related to the CCSID, I can run Scott's example
without any problems and that doc is also set to UTF-8

The ccsid can be controlled at the system level in a system value
(QCCSID), or at the user level in the profile definition.

IBM ships with a CCSID value = 65535.

If the user profile that is executing the parse is different than this,
un-intended results may occur. The CCSID value can be inherited from
group profiles, so check those too.

I've run into SQL where the CCSID value was key to being able to even use
some particular SQL XML-serialization actions. Related? I don't know for
sure. We are in the process of changing the group profiles for particular
users to CCSID = 37 and leaving the shipped system value as is. This is
mostly due to corporate wariness. Others on this forum have noted no ill
effects changing it mid-day. I'm not brave enough to go that route. :-)

Steve Needles


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of RPGLIST
Sent: Wednesday, August 28, 2013 11:49 AM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: RE: XML Parser Error 12

The CCSID for the doc says UTF-8, I'm assuming that the program is the
same, but if you tell me how to check I'll be happy to let you know LOL

Dutch,

I found an old post by Mr. Klement (back in 2007) that seemed to
question the CCSID values. Unfortunately, the thread never resolved.

Does the CCSID value for your xml document match that that is in use
by the program at the time the parsing takes place?

Steve Needles


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of RPGLIST
Sent: Wednesday, August 28, 2013 9:44 AM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: RE: XML Parser Error 12

The very first line of the doc starts out:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

So I'm not thinking that either :)

Its gonna turn out to be something stupid... supposedly its an error
that can be ignored, but your guess is as good as mine on how to do
that.


I see on Google a reference to this error when the xml declaration
(e.g.
<?xml version="1.0" ?> ) does not start in the first byte of the
document. Could this be your issue?

Trevor Briggs
Analyst/Programmer
Lincare, Inc.
(727) 431-1246
TBriggs2@xxxxxxxxxxx

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of RPGLIST
Sent: Wednesday, August 28, 2013 9:57 AM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: RE: XML Parser Error 12

I don't believe so, actually I'm only attempting to extract the first
section of the document right now and there is no field like that.

Error code 12 is saying I have a mixed case, but I'm telling it in
the options to ignore any case, so I've been beating my head against
the glass
:)


This is a complete WAG, but is it possible that you have a field
called
'xml' and that is a reserved word?

Trevor Briggs
Analyst/Programmer
Lincare, Inc.
(727) 431-1246
TBriggs2@xxxxxxxxxxx
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of RPGLIST
Sent: Wednesday, August 28, 2013 9:23 AM
To: rpg400-l@xxxxxxxxxxxx
Subject: XML Parser Error 12

I am getting a parser error 12:


"A processing instruction target name was 'xml' in lowercase,
uppercase
or
mixed case."

I have double checked all the subfields to ensure they match the
tags but for the life of me I have no idea now what this is about...

Is there something in particular I should be looking for?

Dutch


--
This is the RPG programming on the IBM i (AS/400 and iSeries)
(RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at
http://archive.midrange.com/rpg400-l.


*********************************************************************
*
**
*********************************************************************
*
**
************************************************************
This message originates from Lincare Holdings Inc. It contains
information
which may be confidential or privileged and is intended only for the
individual or entity named above.
It is prohibited for anyone else to disclose, copy, distribute or
use
the
contents of this message.
All personal messages express views solely of the sender, which are
not to
be attributed to Lincare Holdings Inc., and may not be copied or
distributed without this disclaimer.
If you received this message in error, please notify us immediately
at MailAdmin@xxxxxxxxxxx or (800) 284-2006.

*********************************************************************
*
**
*********************************************************************
*
**
************************************************************

--
This is the RPG programming on the IBM i (AS/400 and iSeries)
(RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at
http://archive.midrange.com/rpg400-l.




--
This is the RPG programming on the IBM i (AS/400 and iSeries)
(RPG400-L) mailing list To post a message email:
RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list
options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/rpg400-l.

*********************************************************************
*
*********************************************************************
*
****************************************************************
This message originates from Lincare Holdings Inc. It contains
information which may be confidential or privileged and is intended
only for the individual or entity named above.
It is prohibited for anyone else to disclose, copy, distribute or use
the contents of this message.
All personal messages express views solely of the sender, which are
not to be attributed to Lincare Holdings Inc., and may not be copied
or distributed without this disclaimer.
If you received this message in error, please notify us immediately
at MailAdmin@xxxxxxxxxxx or (800) 284-2006.
*********************************************************************
*
*********************************************************************
*
****************************************************************

--
This is the RPG programming on the IBM i (AS/400 and iSeries)
(RPG400-L) mailing list To post a message email:
RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list
options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/rpg400-l.




--
This is the RPG programming on the IBM i (AS/400 and iSeries)
(RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/rpg400-l.

________________________________
This communication, including attachments, is confidential, may be
subject to legal privileges, and is intended for the sole use of the
addressee.
Any use, duplication, disclosure or dissemination of this
communication, other than by the addressee, is prohibited. If you have
received this communication in error, please notify the sender
immediately and delete or destroy this communication and all copies.

TRVDiscDefault::1201

--
This is the RPG programming on the IBM i (AS/400 and iSeries)
(RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/rpg400-l.




--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.


--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.