From 2e94f9b4f792ae8c7713b384b5f4c35c5e315a4a Mon Sep 17 00:00:00 2001 From: maxcorsini Date: Thu, 26 Jan 2006 16:14:48 +0000 Subject: [PATCH] fix protegekb tag --- apps/trimeshinfo/XMLTree.h | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/apps/trimeshinfo/XMLTree.h b/apps/trimeshinfo/XMLTree.h index cf3ef191..2bb0803d 100644 --- a/apps/trimeshinfo/XMLTree.h +++ b/apps/trimeshinfo/XMLTree.h @@ -40,9 +40,9 @@ public: MainNode(void){node_type = MAIN_NODE;}; int node_type; - list > headers; + list > headers; - void addHeaders(const char* str, const char*val); + void addHeaders(const char* str, const char* val); virtual void printNode(); virtual int qualifyNode(); }; @@ -114,26 +114,19 @@ void XMLTree::setVerboseMode(bool flag) void XMLTree::initializeMain() { - MainNode* mn = new MainNode; - //NodeGroup* ng = new NodeGroup; - mn->headers.push_back(pair("protegekb","")); + mn->headers.push_back(pair("protegekb", "")); char* s1 = "http://www.w3.org/2001/XMLSchema-instance"; - char* s2 = new(char[100]); + char* s2 = new char[100]; sprintf(s2,"\"%s\"",s1); mn->addHeaders(" xmlns:xsi=", s2); - s1 = "http://protege.stanford.edu/plugins/xmlbackend/protege_xml_backend.xsd"; - s2 = new(char[100]); sprintf(s2,"\"%s\"",s1); mn->addHeaders(" xsi:noNamespaceSchemaLocation=", s2); - mn->addHeaders(" xmlns:xsi=", s2); root.Sons.push_back(mn); - - } void XMLTree::finalizeMain()