src/result.cpp

См. документацию.
00001 #define X_SPLIT_ATTRIBUTES
00002 #define X_LIGHTER_STRINGS
00003 
00004 #include "result.example.xsl.cpp"
00005 #include "result.h"
00006 
00007 using namespace result;
00008 
00009 int main ( int argc, char *argv[] ) {
00010      FILE* input = fopen("test.xml","r+");
00011 
00012      xml_loader* xl = new xml_loader(input, new DocumentImpl());
00013      Document* doc = xl->getDocument();
00014      delete xl;
00015      fclose(input);
00016 
00017      if(!doc) {
00018           printf("result is null\n");
00019           return -1;
00020      }
00021 
00022      printf("to_xml test: ");
00023      to_xml(*(extension*)(doc->root));
00024 
00025      printf("\nxpath test: ");
00026 
00027      xpath_iterator<extension> i(NULL, (extension*)doc->root);
00028      if(i.checkXPathCondition("location")) {
00029           printer pri;
00030           i.ApplyByXPath("location", pri);
00031      }
00032      printf("\nxslt test: ");
00033 
00034      functor_112 f;
00035      f.out = &std::cerr;
00036      i.ApplyByXPath(".", f);
00037 
00038      printf("\n");
00039      return 0;
00040 }

Документация по XDataServer. Последние изменения: Thu Jul 12 11:49:42 2007. Создано системой  doxygen 1.5.2