Exemplo n.º 1
0
int _tmain(int argc, _TCHAR* argv[])
{
	XmlNode *xml = Sys::Create< XmlNode >(Sys::GlobalOwner());
	xml->ReadFromFile("xml/Myxml.xml");
	xml->Process();
	xml->WriteToFile("xml/MyXmlWrite.xml");
	cout << "Completed!" << endl;
	_getch();
	xml->Destroy();
	//delete xml;
	return 0;
}
Exemplo n.º 2
0
XmlNode* XmlNode::CreateChild(const char* name)
{
  XmlNode* p = Create<XmlNode>(m_Children);
  if (name != NULL)
  {
    try
    {
      p->SetName(name);
    }
    catch (...)
    {
      p->Destroy();
      throw;
    }
  }
  return p;
}