You could also create a new XML file in Eclipse/Rational Studio/Websphere
Studio/<Whatever IBM is calling it> Studio. That will highlight errors on
the screen.

Thanks,
Todd Allen
EDPS
Electronic Data Processing Services
tallen@xxxxxxxxxxxx




Jorge Merino
<jorge@xxxxxxxxx>
Sent by: To
web400-bounces@mi Web Enabling the AS400 / iSeries
drange.com <web400@xxxxxxxxxxxx>
cc

2010-08-13 13:51 Subject
Re: [WEB400] Malformed XML

Please respond to
Web Enabling the
AS400 / iSeries
<web400@midrange.
com>






Issues:
1) The tag "<Physical Address " where attributes where expected.
2) The tag name should be just one word "Physical_address".

The solution was to:
1) Put an underscore on the tag "<Physical_Address" to have a one word tag.
2) Move that tag as a "sub-tag" of "<Blah_ABC_Decision_Info>", that
implied:
2.1) Remove the "/" from the line
[Requestor_Transaction_Amount="03500"/>]
(You only have to put the "/" to indicate that you are closing the
tag and there is not further "sub-tags" underneath.)
2.2) Set a "sub-tag" by moving "<Physical_Address" between
[Requestor_Transaction_Amount="03500">] and [</Consumer_Information>].

What I did to find the issues quickly rather than analyze your code, was:
1) Copy your original XML into a text file with .xml extension,
2) Open that file up with Internet Explorer browser. It immediately told me
where the problem was, however, the message just said that there was an
invalid character and the position where the problem appeared. I applied
the changes described above and it was able to open up the file.

A good way to learn how to create XML files is here:
http://www.w3schools.com/xml/xml_whatis.asp

I'm not adding more to what other guys already replied.

Cheers!

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Michael Ryan
Sent: Friday, August 13, 2010 11:05 AM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] Malformed XML

That makes sense Jorge. I wonder what's wrong with the original though.

On Fri, Aug 13, 2010 at 12:30 PM, Jorge Merino <jorge@xxxxxxxxx> wrote:

Try This:

<?xml version="1.0" encoding="UTF-8"?>
<Blah_ABC_Response>
<Blah_ABC_Decision_Info>
<Consumer_Information
First_Name="JOHN"
Last_Name="ISNER"
Birth_Date="1985-01-01"
Home_Telephone_Number="5869831111"
Requestor_Transaction_Amount="03500">
<Physical_Address
Address_Line_1="1 TENNIS DR "
Address_Line_2=""
Address_City="WARREN"
Address_State_Code="MI"
Address_Postal_Code="49802"/>
</Consumer_Information>
</Blah_ABC_Decision_Info>
</Blah_ABC_Response>

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Michael Ryan
Sent: Friday, August 13, 2010 10:19 AM
To: Web Enabling the AS400 / iSeries; Midrange Systems Technical
Discussion
Subject: [WEB400] Malformed XML

Anyone see what's wrong with this XML? I have to be able to intelligently
tell the provider.

<?xml version="1.0" encoding="UTF-8"?>
<Blah_ABC_Response>
<Blah_ABC_Decision_Info>
<Consumer_Information
First_Name="JOHN"
Last_Name="ISNER"
<Physical Address
Address_Line_1="1 TENNIS DR "
Address_Line_2=""
Address_City="WARREN"
Address_State_Code="MI"
Address_Postal_Code="49802"/>
Birth_Date="1985-01-01"
Home_Telephone_Number="5869831111"
Requestor_Transaction_Amount="03500"/>
</Consumer_Information>
</Blah_ABC_Decision_Info>
</Blah_ABC_Response>

Is it that Address_Postal_Code and Requestor_Transaction_Amount both have
ending brackets? I removed the one after Address_Postal_Code, but I
received
the same error in the same place.

Thanks!




This communication and any transmitted documents are intended to be confidential. If there is a problem with this transmission, please contact the sender. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.