• Home
  • Raw
  • Download

Lines Matching refs:ele

590 		XMLElement* ele = doc.FirstChildElement();  in main()  local
596 result = ele->QueryDoubleAttribute( "attr0", &dVal ); in main()
599 XMLTest( "Query attribute: int as double", 1, (int)ele->DoubleAttribute("attr0")); in main()
601 result = ele->QueryDoubleAttribute( "attr1", &dVal ); in main()
604 XMLTest( "Query attribute: double as double", 2.0, ele->DoubleAttribute("attr1") ); in main()
606 result = ele->QueryIntAttribute( "attr1", &iVal ); in main()
610 result = ele->QueryIntAttribute( "attr2", &iVal ); in main()
612 XMLTest( "Query attribute: not a number", 4.0, ele->DoubleAttribute("attr2", 4.0) ); in main()
614 result = ele->QueryIntAttribute( "bar", &iVal ); in main()
616 XMLTest( "Query attribute: does not exist", true, ele->BoolAttribute("bar", true) ); in main()
626 XMLElement* ele = doc.FirstChildElement(); in main() local
631 ele->SetAttribute( "str", "strValue" ); in main()
632 ele->SetAttribute( "int", 1 ); in main()
633 ele->SetAttribute( "double", -1.0 ); in main()
635 const char* cStr = ele->Attribute( "str" ); in main()
637 XMLError queryResult = ele->QueryIntAttribute( "int", &iVal ); in main()
641 XMLError queryResult = ele->QueryDoubleAttribute( "double", &dVal ); in main()
646 int queryResult = ele->QueryAttribute( "int", &iVal2 ); in main()
650 int queryResult = ele->QueryAttribute( "double", &dVal2 ); in main()
654 XMLTest( "Attribute match test", "strValue", ele->Attribute( "str", "strValue" ) ); in main()
660 XMLTest( "Alternate query", true, iVal == ele->IntAttribute("int") ); in main()
661 XMLTest( "Alternate query", true, dVal == ele->DoubleAttribute("double") ); in main()
1255 for( XMLNode* ele = xml.FirstChildElement( "Parent" )->FirstChild(); in main() local
1256 ele; in main()
1257 ele = ele->NextSibling() ) in main()
1417 XMLElement* ele = doc.FirstChildElement(); in main() local
1419 const XMLAttribute* a = ele->FirstAttribute(); in main()
1427 ele->DeleteAttribute( "attrib2" ); in main()
1428 a = ele->FirstAttribute(); in main()
1433 ele->DeleteAttribute( "attrib1" ); in main()
1434 ele->DeleteAttribute( "attrib3" ); in main()
1435 XMLTest( "Attribute order (empty)", true, ele->FirstAttribute() == 0 ); in main()
1453 XMLElement* ele = 0; in main() local
1454 ele = doc0.FirstChildElement(); in main()
1455 XMLTest( "Attribute with space #1", "Test Attribute", ele->Attribute( "attribute1" ) ); in main()
1456 ele = doc1.FirstChildElement(); in main()
1457 XMLTest( "Attribute with space #2", "Test Attribute", ele->Attribute( "attribute1" ) ); in main()
1458 ele = doc2.FirstChildElement(); in main()
1459 XMLTest( "Attribute with space #3", "Test Attribute", ele->Attribute( "attribute1" ) ); in main()
1483 XMLElement* ele = XMLHandle( doc ).FirstChildElement( "element" ).FirstChild().ToElement(); in main() local
1484 XMLTest( "Handle, non-const, element is found", true, ele != 0 ); in main()
1485 XMLTest( "Handle, non-const, element name matches", "sub", ele->Value() ); in main()
1490 …XMLElement* ele = docH.FirstChildElement( "noSuchElement" ).FirstChildElement( "element" ).ToEleme… in main() local
1491 XMLTest( "Handle, non-const, element not found", true, ele == 0 ); in main()
1495 …const XMLElement* ele = XMLConstHandle( doc ).FirstChildElement( "element" ).FirstChild().ToElemen… in main() local
1496 XMLTest( "Handle, const, element is found", true, ele != 0 ); in main()
1497 XMLTest( "Handle, const, element name matches", "sub", ele->Value() ); in main()
1502 …const XMLElement* ele = docH.FirstChildElement( "noSuchElement" ).FirstChildElement( "element" ).T… in main() local
1503 XMLTest( "Handle, const, element not found", true, ele == 0 ); in main()
1668 …XMLElement* ele = doc.NewElement( "unused" ); // This will get cleaned up with the 'doc' going ou… in main() local
1669 XMLTest( "Tracking unused elements", true, ele != 0, false ); in main()
1678 XMLElement* ele = doc.FirstChildElement( "parent")->FirstChildElement( "child"); in main() local
1681 bool acceptResult = ele->Accept( &printer ); in main()
2042 XMLElement* ele = doc.NewElement("LEAK 2"); in main() local
2043 doc.DeleteNode(ele); in main()