Commit 6f2fdcd9 authored by Oleg Korshul's avatar Oleg Korshul

verify ooxml file. developing...

parent 9b4b7a26
...@@ -89,7 +89,8 @@ private: ...@@ -89,7 +89,8 @@ private:
for (int i = 0; i < nCount; i++) for (int i = 0; i < nCount; i++)
{ {
CXmlStackNamespaces _retRecursion = GetByIdRec(ret, id); oNodes.GetAt(i, ret.m_node);
CXmlStackNamespaces _retRecursion = ret.GetByIdRec(ret, id);
if (_retRecursion.m_node.IsValid()) if (_retRecursion.m_node.IsValid())
return _retRecursion; return _retRecursion;
} }
...@@ -165,7 +166,25 @@ public: ...@@ -165,7 +166,25 @@ public:
return; return;
} }
// 2) Objects
XmlUtils::CXmlNodes nodesReferences;
m_node.ReadNode(L"SignedInfo").GetNodes(L"Reference", nodesReferences);
CXmlStackNamespaces stack(m_node);
int nCount = nodesReferences.GetCount();
for (int i = 0; i < nCount; i++)
{
XmlUtils::CXmlNode nodeRef;
nodesReferences.GetAt(i, nodeRef);
std::string sId = nodeRef.GetAttributeA("URI");
if (0 == sId.find("#"))
sId = sId.substr(1);
CXmlStackNamespaces _stack = stack.GetById(sId);
std::string sTmp = _stack.GetXml();
XML_UNUSED(sTmp);
}
} }
friend class COOXMLVerifier; friend class COOXMLVerifier;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment