working with CXTPPropExchangeXMLNode |
Post Reply |
Author | |
jimmy
Senior Member Joined: 11 November 2003 Location: Austria Status: Offline Points: 515 |
Post Options
Thanks(0)
Posted: 29 August 2008 at 7:49am |
Hello,
I can xml.LoadFromFile PX_..(xml, ....) read some data xml.SetLoading(FALSE); PX_...(&xml,...) write/change/add some data. xml.SaveToFile(...) But how can i remove exist entrys ? Please add some Remove function RemoveAttribute, RemoveSection, ... Jimmy My current solution: class CXTPPropExchangeXMLNodeEx : public CXTPPropExchangeXMLNode { bool DeleteAttr(LPCTSTR lpszEntry) { USES_CONVERSION; CXTPDOMNodePtr xmlNodeEntryPtr; XTPXML::IXMLDOMNamedNodeMapPtr map; m_xmlSectionNode->get_attributes(&map); HRESULT hr = map->removeNamedItem(CT2BSTR(lpszEntry), &xmlNodeEntryPtr); if (FAILED(hr)) return false; return true; } } |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
There is ClearSection methos.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
jimmy
Senior Member Joined: 11 November 2003 Location: Austria Status: Offline Points: 515 |
Post Options
Thanks(0)
|
Thanks for answer,
and how can i delete a attribute (CompactMode) <FB Name="XYD" Some="was" /> i will delete Some from entry. Jimmy |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |