Hello, everyone!
I am using Xalan to parse a XML document. This is a glimpse of what I do:
std::string fileNameStr = fileName.Tofilename();
XalanDOMString strFileName(fileNameStr.c_str());
LocalFileInputSource srcFile(strFileName.c_str());
XalanDocument* document = parserLiaison.parseXMLStream(srcFile);
What I want to do is to know the encoding of the source document. There is no method on a XalanDocument or on a parser that tells the encoding. Is there someone who knows how to do it? I will greatly appreciate a solution!