/*
- * Copyright 2001-2006 Internet2
+ * Copyright 2001-2007 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
MAKE_NONCOPYABLE(XercesJanitor);
T* m_held;
public:
+ /**
+ * Constructor
+ *
+ * @param resource object to release when leaving scope
+ */
XercesJanitor(T* resource) : m_held(resource) {}
~XercesJanitor() {
static DOMAttr* getIdAttribute(const DOMElement* domElement);
/**
+ * Attempts to locate an XMLObject from this point downward in the tree whose
+ * XML ID matches the supplied value.
+ *
+ * @param tree root of tree to search
+ * @param id ID value to locate
+ * @return XMLObject in the tree with a matching ID value, or NULL
+ */
+ static const XMLObject* getXMLObjectById(const XMLObject& tree, const XMLCh* id);
+
+
+ /**
* Gets the QName for the given DOM node.
*
* @param domNode the DOM node
*
* @param n node to serialize
* @param out stream to serialize element into
+ * @return reference to output stream
*/
- static void serialize(const DOMNode* n, std::ostream& out);
+ static std::ostream& serialize(const DOMNode* n, std::ostream& out);
};
/**