Main Page | Namespaces | Classes | Compounds | Files | Compound Members | Related main.cpp00001 // 00002 // SYNTOPIA. See http://Syntopia.sourceforge.net for details and documentation. 00003 // 00004 // Author of this file: Mikael Hvidtfeldt Christensen (mikaelc@users.sourceforge.net) 00005 // 00006 00007 #include "Utils.h" 00008 00009 int main(int argc, char* argv[]) 00010 { 00011 using namespace Utils; 00012 XMLDoc myDoc; 00013 XMLNode * tN= new TagNode(); 00014 /* 00015 cout << typeid(myDoc).name() << endl; 00016 cout << (typeid(*tN) == typeid(TagNode)) << endl; 00017 cout << (typeid(*tN) == typeid(XMLNode)) << endl; 00018 cout << (typeid(*tN) == typeid(TextNode)) << endl; 00019 try { 00020 myDoc.tagPartition(" /TAG mikael = \"hello world\" / peter = \"kola \" asd = 23 "); 00021 } *catch (parseError pE) { 00022 pE.print(); 00023 } 00024 return 0;*/ 00025 00026 00027 return 0; 00028 } 00029 00030 00031 /* 00032 BN notation for my simplified XML 00033 00034 | or. 00035 [xxx] optional. 00036 * 0 or more times. 00037 (xxx) grouped together. 00038 00039 BLOCK = TAG | TEXT 00040 00041 TAG = COMMENT | UNITAG | STARTTAG | ENDTAG 00042 00043 COMMENT = < ? TEXT > 00044 00045 STARTTAG = < NAME WS ([ATTRIBUTE] WS)* > 00046 00047 UNITAG = < NAME WS ([ATTRIBUTE] WS)* > 00048 00049 ATTRIBUTE = NAME WS = WS VALUE 00050 00051 VALUE = " TEXT " 00052 00053 ENDTAG = </NAME WS> 00054 00055 TEXT = all possible characters with exception of < and > 00056 00057 00058 */ Docs made by Doxygen. Email: Mikael Christensen |