#include "StdAfx.h" #include "MBLinkDocInfo.h" IMPLEMENT_DYNAMIC(CMBLinkDocInfo, CMBBaseLinkDocObj) CMBLinkDocInfo::CMBLinkDocInfo(void) { } CMBLinkDocInfo::~CMBLinkDocInfo(void) { } bool CMBLinkDocInfo::ParseXML(CString strXml,CString &strErrInfo) { if( strXml.IsEmpty() ) { return true; } pugi::xml_document xmlDoc; if (!xmlDoc.load(strXml)) { return false; } pugi::xml_node form = xmlDoc.child(_T("Doc")); pugi::xml_node node = form; m_strFileID = node.attribute(_T("FileID")).value(); m_strFileName = node.child_value(_T("FileName")); m_strFileServer = node.attribute(_T("FileServer")).value(); return true; }