Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML parsing exception: sun.io.MalformedInputException

Status
Not open for further replies.

badkiran6

Technical User
Oct 11, 2005
2
US
When the program is processing the below data, It is giving the eror which i specified in subject:

ERROR :

XML parsing exception: sun.io.MalformedInputException

DATA which iam processing:

CIF_I_V3.0
CHARSET: UTF-8
LOADMODE: F
CODEFORMAT: UNSPSC
CURRENCY: USD
SUPPLIERID_DOMAIN: DUNS
ITEMCOUNT: 5
TIMESTAMP: 2003-05-15 13:30:00
UNUOM: TRUE
COMMENTS:
FIELDNAMES: Supplier ID,Supplier Part ID,Manufacturer Part ID,Item Description,SPSC Code,Unit Price,Unit of Measure,Lead Time,Manufacturer Name,Supplier URL,Manufacturer URL,Market Price,Supplier Part Auxiliary ID,Language,Currency,Short Name,Territory Available
DATA
"002034379","GS1300","889-89/33","TensaBarrier® Stanchion in black with retractable 7 foot 6 inches black belt","46151500 ","69","EA","2","LAWRENCE METAL PRODUCTS",""," Post",""
"002034379","GS1310","889-89/RCVR","TensaBarrier® Receiver Stanchion in black (no belt)","46151500 ","61","EA","2","LAWRENCE METAL PRODUCTS",""," Receiver Post",""
"002034379","GS1360","899HD-B","Heavy Duty Sign Adapter","55121908 ","22","EA","2","LAWRENCE METAL PRODUCTS",""," Adapter",""
"002034379","GS1370","TGTSIGNHOLDER","7X11 Curved Acrylic Sign Holder includes Bracket (Must be used in conjunction with GS1360)","55121908 ","14","EA","2","LAWRENCE METAL PRODUCTS",""," Sign Holder",""
ENDOFDATA
 
? This looks like CSV, not XML.

Jon

"I don't regret this, but I both rue and lament it.
 
You any idea why it is giving that error.
Do you see any problem with the data
 
badkiran6 said:
Do you see any problem with the data(?)

Yes. Your input is not an XML document. Why do you think an XML parser should parse what appears to be comma-separated data?

Tom Morrison
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top