mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 02:53:10 +01:00
changes from main repository
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// Element.cpp
|
||||
//
|
||||
// $Id: //poco/svn/XML/src/Element.cpp#2 $
|
||||
// $Id: //poco/svn/XML/src/Element.cpp#3 $
|
||||
//
|
||||
// Library: XML
|
||||
// Package: DOM
|
||||
@@ -173,6 +173,27 @@ Attr* Element::removeAttributeNode(Attr* oldAttr)
|
||||
}
|
||||
|
||||
|
||||
Attr* Element::addAttributeNodeNP(Attr* oldAttr, Attr* newAttr)
|
||||
{
|
||||
newAttr->_pParent = this;
|
||||
if (oldAttr)
|
||||
{
|
||||
oldAttr->_pNext = newAttr;
|
||||
}
|
||||
else if (_pFirstAttr)
|
||||
{
|
||||
newAttr->_pNext = _pFirstAttr;
|
||||
_pFirstAttr = newAttr;
|
||||
}
|
||||
else
|
||||
{
|
||||
_pFirstAttr = newAttr;
|
||||
}
|
||||
newAttr->duplicate();
|
||||
return newAttr;
|
||||
}
|
||||
|
||||
|
||||
NodeList* Element::getElementsByTagName(const XMLString& name) const
|
||||
{
|
||||
return new ElementsByTagNameList(this, name);
|
||||
|
||||
Reference in New Issue
Block a user