From: garbe n. <Nic...@et...> - 2002-09-05 14:38:05
|
---------- Message transmis ---------- Subject: transcriber and ag Date: Wed, 4 Sep 2002 17:09:25 -0400 From: garbe nicolas <ga...@et...> To: Haejoong Lee <hae...@un...>, Xiaoyi Ma <xm...@un...> Hello, I work on Transcriber and I tried to use libag. But I have a probleme with Transcriber.cc, I wrote this file ################################################# #!/usr/bin/wish load ../src/ag_wrapper/tcl/.libs/ag.so set transId [AG::CreateAGSet "Transcriber"] set toto [AG::Load Transcriber "frint980428.xml" $transId] ########################################" But I have a problem with Load and more particular with ########################################## static void mk_mdata(DOMNode* e, map<string,string>& m) { cout << "rentre dans mdata\n"; if (e == NULL) { cout << "arbre non initialise\n"; return; } DOMNamedNodeMap* A = e->getAttributes(); cout << "attributes\n"; if (A == NULL) return; for (int i=0; i < A->getLength(); ++i) { DOMNode* a = A->item(i); m[get_fname(e->getNodeName(),a->getNodeName())] = StrX()(a->getNodeValue()); } cout << "sortie mdata\n"; } ########################################## DOMNode isn't initialised.... I attached the file I used, If you can give me an example in tcl which used load and store, it'll be very interessant for me Must I give an agsetid for load with transcriber ? nicolas ------------------------------------------------------- |