53 G4String error_msg =
"Referenced setup '" + ref +
"' was not found!";
54 G4Exception(
"G4GDMLReadSetup::getSetup()",
"ReadError",
67 const xercesc::DOMNamedNodeMap*
const attributes = element->getAttributes();
68 XMLSize_t attributeCount = attributes->getLength();
70 for (XMLSize_t attribute_index=0;
71 attribute_index<attributeCount; attribute_index++)
73 xercesc::DOMNode* attribute_node = attributes->item(attribute_index);
75 if (attribute_node->getNodeType() != xercesc::DOMNode::ATTRIBUTE_NODE)
78 const xercesc::DOMAttr*
const attribute
79 =
dynamic_cast<xercesc::DOMAttr*
>(attribute_node);
89 if (attName==
"name") { name = attValue; }
92 for (xercesc::DOMNode* iter = element->getFirstChild();
93 iter != 0; iter = iter->getNextSibling())
95 if (iter->getNodeType() != xercesc::DOMNode::ELEMENT_NODE) {
continue; }
97 const xercesc::DOMElement*
const child
98 =
dynamic_cast<xercesc::DOMElement*
>(iter);