mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-30 08:38:15 +01:00
skip if no external DTD
This commit is contained in:
parent
e4fd3c8239
commit
90d6726d1b
1 changed files with 10 additions and 0 deletions
|
@ -81,7 +81,17 @@ class elementretrieveallattributes : public DOMTestCase<string_type, string_adap
|
|||
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();
|
||||
|
|
Loading…
Add table
Reference in a new issue