how to specify Encoding

"Nikhil C. Khedkar" <[email protected]>
Newsgroups gmane.text.xml.xmlpull.devel
Message-ID <[email protected]>
Hi,
       I am using PullParser2_1_8_SMALL.jar, XPP3/MXP1
implementation.
	if I want to pass InputStream to the parser's parse
method, do I need to set the encoding of InputStream,
equals to the attribute encoding="xyz", the xml file
has? Or the parser takes care of this encoding and the
InputStream need not bother about it?
	Basically my requirement is, I want to parse xml
file, whose encoding I do not know, using parse
method, which takes InputStream.
	Is the file's encoding (i.e. the one in which the
file is saved) and the attribute, encoding="xyz" must
be same. My question is, if the parser takes care of
the encoding, how does it make sense from InputStream
and fetch the encoding, because even to parse the
first line having encoding attribute, it has to know
the encoding of InputStream?

Thanks,
    Nikhil



__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/JjlUgA/vN2EAA/duQHAA/2U_rlB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
[email protected]

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.