使用Xerces-c-3.1.0时候,看IBM网站的示例代码时,在3.1.0的src文件中,找不到DOMWriter,求助为什么?
会不会是3.1.0及以后的版本中这个类被替换了,这样一来就不能保存XML文件了,下面是IBM的保存文件的示例代码:
void save_to_file(DOMDocument *pDoc, const char *strPath)
{
  XercesString wstrPath( XMLString::transcode(strPath) );
  if (wstrPath)
  {
    DOMWriterImpl writer;            // 在这里,找不到这个类的定义,在文件中我也搜索过了,没有找到.
    LocalFileFormatTarget fileTarget(wstrPath);
    // write the resulting document.
    writer.setEncoding( XercesString("UTF-8") );
    writer.writeNode(&fileTarget, *pDoc);
  }
}求助各位大侠了,为什么这个DOMWriterImpl找不到,是被什么更新的类代替了吗?这两天刚接触这个XML的解析器,很多地方不懂的,希望可以请教你们,我的Q是:964855959