| | |
| | | |
| | | xnode m_agentNode; //Agent Condition |
| | | xstring m_agentCond; //Agent Node |
| | | public: |
| | | int SetAgent() |
| | | { |
| | | /* xstring xfNodeAgentArea = L"agentarea"; |
| | |
| | | xstring sType = OnGetType(); |
| | | if (sType == L"xml.xsd") |
| | | { |
| | | xstring sError; |
| | | x.ValidSchema(content, &sError); |
| | | BSTR sError= nullptr; |
| | | x.ValidSchema((const wchar_t* )content.c_str(), sError); |
| | | trace(sError); |
| | | } |
| | | } |
| | |
| | | else if (sType == L"xml.xsd") |
| | | { |
| | | xml doc; |
| | | x.GetSchemaXml(content,doc); |
| | | x.GetSchemaXml((LPTSTR)content.c_str(), doc); |
| | | //trace(doc.xml()); |
| | | auto e = doc.selectSingleNode(L"root/schema"); |
| | | if (e) { |
| | |
| | | { |
| | | HTREEITEM hP2Item = 0; |
| | | HTREEITEM hDomainItem = 0; |
| | | if (tv_folder.GetParentItem(hItem) <= 0) |
| | | if (!tv_folder.GetParentItem(hItem)) |
| | | { |
| | | hDomainItem = hItem; |
| | | } |
| | |
| | | { |
| | | xstring xsd = GetXSD(L"" + filename); |
| | | xml x; |
| | | x.GetSchemaXml(xsd,x); |
| | | x.GetSchemaXml((LPTSTR)xsd.c_str(), x); |
| | | trace(x.xml()); |
| | | |
| | | /* xml x = new xml; |
| | |
| | | //获取焦点事件,用于重置工具条 |
| | | AttachEvent(L"WM_SETFOCUS", (FEvent)&XDevEditXFile::OnSetFocus); |
| | | AttachEvent(L"xreport",L"DWV_DOUBLECLICKED", (FEvent)&XDevEditXFile::OnDoubleClicked); |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | int LoadData() |