ixmldomnode

How can I access element attributes from an IXMLDOMNode?

Hi all, I'm building an XML DOM document in C++. My problem is this: I execute an XPATH query from an Element in my Document, which I know will return another Element. The elementPtr->selectSingleNode call returns an IXMLDOMNode. How can I gain access to the attributes of this node? Part of me wants to downcast the Node to an Element,...

dom in PHP saves new content over the old File

Each time i do $country = $this->dom->saveXML(); // put string in country $this->dom->save('country.xml'); It delets the old country.xml and creates a new country.xml how can i append the old content of country.xml to the new content and save it again as country.xml ...