I'm glad you posted that code. I put the XPP3 parser in my stuff and
it parses in 1/10th the time as the old setup.(1/2 half a second
instead of 5 seconds!) Also, I'm able to parse a document and ignore
namespaces.(thx God)
--Evan
Ranjan Baisak wrote:
Yes I am trying to open it in ISO-8859-1 encoding.
I think I need to keep the same encoding as URL.
Let me try that.
Thanks,
-R
On 4/11/07, Nichiketa s <[EMAIL PROTECTED]> wrote:
While
opening streams you can specify the Encoding for the document. Please
check the Java docs for the syntax...
- Harjit
>From: "Ranjan Baisak" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: [dom4j-user] non-english chars with XPPReader
>Date: Wed, 11 Apr 2007 15:07:18 -0400
>
>Hello Group,
> I am reading a non-english document from a remote
URL
>using
>following syntax
>
>
>URL url = "" URL(uri);
>
>InputStream inStream = url.openConnection().getInputStream();
>
>Document doc = xppReader.read(inStream);
>
>And displaying the content of Document after doing some
manipulation using
>asXML() method.
>
>However I am loosing all characters and getting bunch of ascii
characters.
>I
>am not sure, how can I retain the original characters.Any input
would be
>appreciated?
>
>
>
>regards,
>
>Ranjan
>-------------------------------------------------------------------------
>Take Surveys. Earn Cash. Influence the Future of IT
>Join SourceForge.net's Techsay panel and you'll get the chance to
share
>your
>opinions on IT & business topics through brief surveys-and earn
cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>_______________________________________________
>dom4j-user mailing list
>
[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/dom4j-user
_________________________________________________________________
The average US Credit Score is 675. The cost to see yours: $0 by
Experian.
http://www.freecreditreport.com/pm/default.aspx?sc=660600&bcd=EMAILFOOTERAVERAGE
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user
|
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user