本文整理汇总了C++中DocumentType::getNotations方法的典型用法代码示例。如果您正苦于以下问题:C++ DocumentType::getNotations方法的具体用法?C++ DocumentType::getNotations怎么用?C++ DocumentType::getNotations使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DocumentType
的用法示例。
在下文中一共展示了DocumentType::getNotations方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: runTest
/*
* Runs the test case.
*/
void runTest()
{
Document doc;
DocumentType docType;
NamedNodeMap notations;
Node notationNode;
String notationName;
doc = (Document) baseT::load("staff", false);
docType = doc.getDoctype();
baseT::assertNotNull(docType, __LINE__, __FILE__);
notations = docType.getNotations();
baseT::assertNotNull(notations, __LINE__, __FILE__);
notationNode = notations.getNamedItem(SA::construct_from_utf8("notation1"));
baseT::skipIfNull(notationNode);
notationName = notationNode.getNodeName();
baseT::assertEquals("notation1", notationName, __LINE__, __FILE__);
}
示例2: runTest
/*
* Runs the test case.
*/
void runTest()
{
Document doc;
DocumentType docType;
NamedNodeMap notations;
Notation notationNode;
String systemId;
doc = (Document) baseT::load("staff", false);
docType = doc.getDoctype();
baseT::assertNotNull(docType, __LINE__, __FILE__);
notations = docType.getNotations();
baseT::assertNotNull(notations, __LINE__, __FILE__);
notationNode = (Notation) notations.getNamedItem(SA::construct_from_utf8("notation2"));
baseT::skipIfNull(notationNode);
systemId = notationNode.getSystemId();
baseT::assertURIEquals("uriEquals", "", "", "", "notation2File", "", "", "", false, systemId);
}
示例3: runTest
/*
* Runs the test case.
*/
void runTest()
{
Document doc;
DocumentType docType;
NamedNodeMap notations;
Notation notationNode;
String publicId;
doc = (Document) baseT::load("staff", false);
docType = doc.getDoctype();
baseT::assertNotNull(docType, __LINE__, __FILE__);
notations = docType.getNotations();
baseT::assertNotNull(notations, __LINE__, __FILE__);
notationNode = (Notation) notations.getNamedItem(SA::construct_from_utf8("notation2"));
baseT::skipIfNull(notationNode);
publicId = notationNode.getPublicId();
baseT::assertNull(publicId, __LINE__, __FILE__);
}
示例4: runTest
/*
* Runs the test case.
*/
void runTest()
{
Document doc;
DocumentType docType;
NamedNodeMap notationList;
Node notation;
int notationType;
doc = (Document) baseT::load("staff", false);
docType = doc.getDoctype();
baseT::assertNotNull(docType, __LINE__, __FILE__);
notationList = docType.getNotations();
baseT::assertNotNull(notationList, __LINE__, __FILE__);
for (unsigned int indexN65609 = 0; indexN65609 != notationList.getLength(); indexN65609++) {
notation = (Node) notationList.item(indexN65609);
notationType = (int) notation.getNodeType();
baseT::assertEquals(12, notationType, __LINE__, __FILE__);
}
}
示例5: runTest
/*
* Runs the test case.
*/
void runTest()
{
Document doc;
NodeList addressList;
Node testAddress;
NamedNodeMap attributes;
DocumentType docType;
NamedNodeMap notations;
Notation notationNode;
String notationName;
doc = (Document) baseT::load("staff", false);
docType = doc.getDoctype();
baseT::assertNotNull(docType, __LINE__, __FILE__);
notations = docType.getNotations();
baseT::assertNotNull(notations, __LINE__, __FILE__);
notationNode = (Notation) notations.getNamedItem(SA::construct_from_utf8("notation1"));
baseT::skipIfNull(notationNode);
addressList = doc.getElementsByTagName(SA::construct_from_utf8("address"));
testAddress = addressList.item(0);
attributes = testAddress.getAttributes();
baseT::assertSize(2, attributes, __LINE__, __FILE__);
}