• Home
  • Raw
  • Download

Lines Matching full:doc

126 		TiXmlDocument doc( "demotest.xml" );  in main()  local
127 doc.Parse( demoStart ); in main()
129 if ( doc.Error() ) in main()
131 printf( "Error in %s: %s\n", doc.Value(), doc.ErrorDesc() ); in main()
134 doc.SaveFile(); in main()
137 TiXmlDocument doc( "demotest.xml" ); in main() local
138 bool loadOkay = doc.LoadFile(); in main()
142 printf( "Could not load test file 'demotest.xml'. Error='%s'. Exiting.\n", doc.ErrorDesc() ); in main()
146 printf( "** Demo doc read from disk: ** \n\n" ); in main()
147 doc.Print( stdout ); in main()
161 node = doc.FirstChild( "ToDo" ); in main()
230 printf( "\n** Demo doc processed: ** \n\n" ); in main()
231 doc.Print( stdout ); in main()
235 printf( "** Demo doc processed to stream: ** \n\n" ); in main()
236 cout << doc << endl << endl; in main()
251 outputStream << doc; in main()
256 node = doc.RootElement(); in main()
276 for( node = doc.FirstChild(); in main()
285 for( node = doc.LastChild(); in main()
296 for( node = doc.IterateChildren( 0 ); in main()
298 node = doc.IterateChildren( node ) ) in main()
354 TiXmlDocument doc; in main() local
355 doc.Parse( error ); in main()
356 XmlTest( "Error row", doc.ErrorRow(), 3 ); in main()
357 XmlTest( "Error column", doc.ErrorCol(), 17 ); in main()
358 …//printf( "error=%d id='%s' row %d col%d\n", (int) doc.Error(), doc.ErrorDesc(), doc.ErrorRow()+1,… in main()
368 TiXmlDocument doc; in main() local
369 doc.Parse( str ); in main()
371 TiXmlHandle docHandle( &doc ); in main()
385 TiXmlDeclaration* declaration = doc.FirstChild()->ToDeclaration(); in main()
416 TiXmlDocument doc; in main() local
417 doc.SetTabSize( 8 ); in main()
418 doc.Parse( str ); in main()
420 TiXmlHandle docHandle( &doc ); in main()
438 const char* str = "<doc attr0='1' attr1='2.0' attr2='foo' />"; in main()
440 TiXmlDocument doc; in main() local
441 doc.Parse( str ); in main()
443 TiXmlElement* ele = doc.FirstChildElement(); in main()
497 TiXmlDocument doc( "utf8test.xml" ); in main() local
498 doc.LoadFile(); in main()
499 if ( doc.Error() && doc.ErrorId() == TiXmlBase::TIXML_ERROR_OPENING_FILE ) { in main()
506 TiXmlHandle docH( &doc ); in main()
532 XmlTest( "UTF-8: Document column.", 1, doc.Column() ); in main()
535 doc.SaveFile( "utf8testout.xml" ); in main()
626 TiXmlDocument doc; in main() local
628 doc.InsertEndChild( decAssign ); in main()
629 doc.InsertEndChild( elementCopy ); in main()
630 doc.InsertEndChild( unknownAssign ); in main()
632 TiXmlDocument docCopy( doc ); in main()
638 original << doc; in main()
667 TiXmlDocument doc; in main() local
668 doc.Parse( str ); in main()
669 const TiXmlElement* element = doc.RootElement(); in main()
674 doc.Clear(); in main()
675 doc.Parse( str ); in main()
676 element = doc.RootElement(); in main()
681 doc.Clear(); in main()
683 doc.Parse( str ); in main()
685 element = doc.RootElement(); in main()
700 TiXmlDocument doc; in main() local
701 doc.Parse( str ); in main()
702 //doc.Print(); in main()
704 XmlTest( "CDATA parse.", doc.FirstChildElement()->FirstChild()->Value(), in main()
709 //cout << doc << '\n'; in main()
711 doc.Clear(); in main()
714 parse0 >> doc; in main()
715 //cout << doc << '\n'; in main()
717 XmlTest( "CDATA stream.", doc.FirstChildElement()->FirstChild()->Value(), in main()
722 TiXmlDocument doc1 = doc; in main()
723 //doc.Print(); in main()
763 TiXmlDocument doc; in main() local
765 doc.LoadFile( name ); in main()
785 …TiXmlDocument doc( "midsummerNightsDreamWithAVeryLongFilenameToConfuseTheStringHandlingRoutines.xm… in main() local
786 bool loadOkay = doc.LoadFile(); in main()
803 TiXmlDocument doc( "passages.xml" ); in main() local
804 doc.Parse( passages ); in main()
805 TiXmlElement* psg = doc.RootElement()->FirstChildElement(); in main()
839 TiXmlDocument doc; in main() local
840 doc.LoadFile( "test5.xml" ); in main()
841 XmlTest( "dot in element attributes and names", doc.Error(), 0); in main()
852 TiXmlDocument doc; in main() local
853 bool result = doc.LoadFile( "test6.xml" ); in main()
856 TiXmlText* text = doc.FirstChildElement()->FirstChildElement()->FirstChild()->ToText(); in main()
872 TiXmlDocument doc; in main() local
873 doc.Parse( doctype ); in main()
874 doc.SaveFile( "test7.xml" ); in main()
875 doc.Clear(); in main()
876 doc.LoadFile( "test7.xml" ); in main()
878 TiXmlHandle docH( &doc ); in main()
894 TiXmlDocument doc; in main() local
895 doc.Parse( doctype ); in main()
897 TiXmlHandle docH( &doc ); in main()
910 TiXmlDocument doc; in main() local
912 TiXmlHandle docH( &doc ); in main()
919 doc.Clear(); in main()
920 doc.Parse( doctype0 ); in main()
924 doc.Clear(); in main()
925 doc.Parse( doctype1 ); in main()
929 doc.Clear(); in main()
930 doc.Parse( doctype2 ); in main()
935 doc.Clear(); in main()
936 doc.Parse( doctype0 ); in main()
940 doc.Clear(); in main()
941 doc.Parse( doctype1 ); in main()
945 doc.Clear(); in main()
946 doc.Parse( doctype2 ); in main()
955 TiXmlDocument doc; in main() local
956 doc.Parse( doctype ); in main()
958 XmlTest( "Parsing repeated attributes.", 0, (int)doc.Error() ); // not an error to tinyxml in main()
959 …XmlTest( "Parsing repeated attributes.", "blue", doc.FirstChildElement( "element" )->Attribute( "a… in main()
966 TiXmlDocument doc; in main() local
967 doc.Parse( doctype ); in main()
968 XmlTest( "Embedded null throws error.", true, doc.Error() ); in main()
972 doc.Clear(); in main()
973 doc.ClearError(); in main()
974 strm >> doc; in main()
975 XmlTest( "Embedded null throws error.", true, doc.Error() ); in main()
987 TiXmlDocument doc; in main() local
988 doc.Parse( str ); in main()
990 //doc.Print( stdout, 0 ); in main()
992 TiXmlHandle docHandle( &doc ); in main()
1003 TiXmlDocument doc; in main() local
1004 doc.Parse( str ); in main()
1005 …document error TIXML_ERROR_DOCUMENT_EMPTY", TiXmlBase::TIXML_ERROR_DOCUMENT_EMPTY, doc.ErrorId() ); in main()
1029 TiXmlDocument doc; in main() local
1030 doc.SetCondenseWhiteSpace(false); in main()
1031 doc.Parse("<p><pb></pb>test</p>"); in main()