0
나는이 두 XMLS에서 동적으로 트리보기를 만들 필요가 Windows 응용 프로그램에서 트 리뷰 컨트롤을 만드는 : 부모 노드는 프로젝트 될 것이 XMLS를 읽으려면 및
첫째 XML에서와 자식 (즉, 노드의 텍스트입니다) 노드는 두 번째 XML의 전자 메일과 두 번째 XML의 경로가 첫 xml에 올 때까지 모든 폴더가됩니다.
정말 붙어 있나? XML이
XML 1:
- <Projects>
- <Project id="PROJ_1">
<Name>Project A</Name>
<emailfile>D:\tree\PEMS-Offline-Application\XMLFiles\PROJ_01_EMAILS.xml</emailfile>
</Project>
- <Project id="PROJ_2">
<Name>Project B</Name>
<emailfile>D:\tree\PEMS-Offline-Application\XMLFiles\PROJ_02_EMAILS.xml</emailfile>
</Project>
- <Project id="PROJ_3">
<Name>Project C</Name>
<emailfile>D:\tree\PEMS-Offline-Application\XMLFiles\PROJ_03_EMAILS.xml</emailfile>
</Project>
</Projects>
:
- <root>
- <Project id="PROJ_1">
- <folder id="F1.1">
- <incoming id="incoming">
- <emails>
- <email ID="01.1">
<subject>God Is Great</subject>
<to>[email protected]</to>
<cc>[email protected]</cc>
<emaildate>20/04/2013</emaildate>
<filepath>C:\currentProject\PEMS-Offline-Application\XMLFiles\PROJ_01_EMAILS.xml</filepath>
</email>
- <email ID="01.2">
<subject>God</subject>
<to>[email protected]</to>
<cc>[email protected]</cc>
<emaildate>20/05/2013</emaildate>
<filepath>C:\currentProject\PEMS-Offline-Application\XMLFiles\PROJ_01_EMAILS.xml</filepath>
</email>
</emails>
</incoming>
- <outgoing id="outgoing">
- <emails>
<email ID="01.1" />
<subject>God Is Great</subject>
\
<to />
<cc />
<emaildate />
<filepath />
<email ID="01.2" />
<subject>God</subject>
\
<to />
<cc />
<emaildate />
<filepath />
<email ID="01.2" />
<subject>hi</subject>
\
<to />
<cc />
<emaildate />
<filepath />
</emails>
</outgoing>
</folder>
- <folder id="F1.2">
- <incoming id="incoming">
- <emails>
- <email ID="01.1">
<subject>God Is Great</subject>
<to>[email protected]</to>
<cc>[email protected]</cc>
<emaildate>20/04/2013</emaildate>
<filepath>C:\currentProject\PEMS-Offline-Application\XMLFiles\PROJ_01_EMAILS.xml</filepath>
</email>
- <email ID="01.2">
<subject>God</subject>
<to>[email protected]</to>
<cc>[email protected]</cc>
<emaildate>20/05/2013</emaildate>
<filepath>C:\currentProject\PEMS-Offline-Application\XMLFiles\PROJ_01_EMAILS.xml</filepath>
</email>
</emails>
</incoming>
- <outgoing id="outgoing">
- <emails>
<email ID="01.1" />
<subject>God Is Great</subject>
\
<to />
<cc />
<emaildate />
<filepath />
<email ID="01.2" />
<subject>God</subject>
\
<to />
<cc />
<emaildate />
<filepath />
<email ID="01.2" />
<subject>hi</subject>
\
<to />
<cc />
<emaildate />
<filepath />
</emails>
</outgoing>
</folder>
- <folder id="F1.3">
- <incoming id="incoming">
- <emails>
- <email ID="01.1">
<subject>God Is Great</subject>
<to>[email protected]</to>
<cc>[email protected]</cc>
<emaildate>20/04/2013</emaildate>
<filepath>C:\currentProject\PEMS-Offline-Application\XMLFiles\PROJ_01_EMAILS.xml</filepath>
</email>
- <email ID="01.2">
<subject>God</subject>
<to>[email protected]</to>
<cc>[email protected]</cc>
<emaildate>20/05/2013</emaildate>
<filepath>C:\currentProject\PEMS-Offline-Application\XMLFiles\PROJ_01_EMAILS.xml</filepath>
</email>
</emails>
</incoming>
- <outgoing id="outgoing">
- <emails>
<email ID="01.1" />
<subject>God Is Great</subject>
\
<to />
<cc />
<emaildate />
<filepath />
<email ID="01.2" />
<subject>God</subject>
\
<to />
<cc />
<emaildate />
<filepath />
<email ID="01.2" />
<subject>hi</subject>
\
<to />
<cc />
<emaildate />
<filepath />
</emails>
</outgoing>
</folder>
</Project>
</root>