Back to index

nordugrid-arc-nox  1.1.0~rc6
test.cpp
Go to the documentation of this file.
00001 #include <fstream>
00002 #include <arc/XMLNode.h>
00003 
00004 #include "LDIFtoXML.h"
00005 
00006 int main(int /*args*/,char* argv[]) {
00007   std::ifstream f(argv[1]);
00008   std::string ldif_base = "Mds-Vo-name=local,O=Grid";
00009   Arc::NS ns;
00010   Arc::XMLNode xml(ns,"LDIF");
00011   ARex::LDIFtoXML(f,ldif_base,xml);
00012   std::string s;
00013   xml.GetDoc(s);
00014   std::cout<<s<<std::endl;
00015   return 0;
00016 }
00017