Hi,
   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

 

 



Get a bigger mailbox -- choose a size that fits your needs.

Reply via email to