Ejemplo n.º 1
0
 XMLCh *
 Basic_Resolver::operator() (const XMLCh *const,
                             const XMLCh *const systemId) const
 {
   XStr path (path_);
   path.append (systemId);
   return path.release ();
 }
Ejemplo n.º 2
0
  XMLCh *
  Environment_Resolver::operator() (const XMLCh *const,
                                    const XMLCh *const systemId) const
  {
    for (std::vector<XStr>::const_iterator i = this->paths_.begin ();
          i != this->paths_.end ();
          ++i)
      {
        XStr path (*i);
        path.append(systemId);

        FileHandle file (XMLPlatformUtils::openFile (path));

        if (file != 0)
          {
            XMLPlatformUtils::closeFile (file);
            return path.release ();
          }
      }
    return 0;
  }