|
From: Jimmy Z. <cra...@co...> - 2007-05-15 04:08:30
|
It seems that the XML file you gunzipped contains well-formedness error
can you visually check it (go to line 22)
Jimmy
----- Original Message -----=20
From: G. P.=20
To: vtd...@li...=20
Sent: Monday, May 14, 2007 4:08 AM
Subject: [Vtd-xml-users] reading zipped xml files
Hi List,
I am trying to read from a gzipped xml file, with the following code :
GZIPInputStream gz =3D new GZIPInputStream(new FileInputStream =
(file));
byte[] b =3D new byte[(int) 2*1024]; //max file size
gz.read(b);
=20
VTDGen vg =3D new VTDGen();
vg.setDoc(b);
vg.parse(false);
But I get an=20
Exception in thread "main" com.ximpleware.ParseException: Starting tag =
Error: Invalid char in starting tag
Line Number: 22 Offset: 15
at com.ximpleware.VTDGen.parse(VTDGen.java:1388)
Can someone point me how I can read directly from a gz file ?
thanks in advance
gpio
-------------------------------------------------------------------------=
-----
=D7=F1=E7=F3=E9=EC=EF=F0=EF=E9=E5=DF=F4=E5 Yahoo!
=C2=E1=F1=E5=E8=DE=EA=E1=F4=E5 =F4=E1 =E5=ED=EF=F7=EB=E7=F4=E9=EA=DC =
=EC=E7=ED=FD =EC=E1=F4=E1 (spam); =D4=EF Yahoo! Mail =
=E4=E9=E1=E8=DD=F4=E5=E9 =F4=E7=ED =EA=E1=EB=FD=F4=E5=F1=E7 =
=E4=F5=ED=E1=F4=DE =F0=F1=EF=F3=F4=E1=F3=DF=E1 =EA=E1=F4=DC =F4=F9=ED =
=E5=ED=EF=F7=EB=E7=F4=E9=EA=FE=ED =EC=E7=ED=F5=EC=DC=F4=F9=ED=20
http://login.yahoo.com/config/mail?.intl=3Dgr=20
-------------------------------------------------------------------------=
-----
=
-------------------------------------------------------------------------=
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
-------------------------------------------------------------------------=
-----
_______________________________________________
Vtd-xml-users mailing list
Vtd...@li...
https://lists.sourceforge.net/lists/listinfo/vtd-xml-users
|