当前位置: 首页 > 工具软件 > CMarkup > 使用案例 >

CMarkup的改进[2]

许嘉福
2023-12-01

之前发了一点儿,关于CMarkUp的改进的,现在又做了一点改进。可以查找类似这样的路径:/config/diagnostics[2]/file

 代码

http://download.csdn.net/source/2720848

https://download.csdn.net/download/fietiger/2720848

2010-9-26 23:37:38 Info Begin  log..
2010-9-26 23:37:38 Info CMarkUpCrackDlg::OnInitDialog()
2010-9-26 23:37:38 Info XML File has OpenedF:/Wokey/MarkUpCrack/Debug/example.XML
2010-9-26 23:37:38 Info Path after Test.FindElem(/config/diagnostics) is /config/diagnostics
2010-9-26 23:37:38 Info Path after Test.FindElem(/config/diagnostics[2]) is /config/diagnostics[2]
2010-9-26 23:37:38 Info Path after Test.FindPrevElem() is /config/diagnostics
2010-9-26 23:37:38 Info Attribute d is detected at /config/diagnostics with value 3
2010-9-26 23:37:38 Info Path after Test.FindPrevElem() is /config/Testx
2010-9-26 23:37:38 Info Path after Test.FindElem(/config) is /config
2010-9-26 23:37:38 Info Path after Test.FindChildElem(diagnostics) is /config
2010-9-26 23:37:38 Info Child Attribute d is detected at /config with value 3
2010-9-26 23:37:38 Info Path after Test.FindElem(/config) is /config
2010-9-26 23:37:38 Info Path after Test.FindChildElem(diagnostics[2]) is /config
2010-9-26 23:37:38 Info Child Attribute d is detected at /config with value 7
2010-9-26 23:37:38 Info Test.FindGetData(/config/diagnostics[2]/file) is D:/temp/a.txt
2010-9-26 23:37:38 Info Test.FindSetData(/config/diagnostics[2]/file)..
2010-9-26 23:37:38 Info Test.FindGetData(/config/diagnostics[2]/file) is D:/xx.txt
2010-9-26 23:37:38 Info Path is /config/diagnostics[2]/file
2010-9-26 23:37:38 Info Level is 2
2010-9-26 23:37:38 Info EleCount is 11
2010-9-26 23:37:38 Info Path is /config
2010-9-26 23:37:38 Info Level is 0
2010-9-26 23:37:38 Info EleCount is 11
2010-9-26 23:37:38 Info Path is /config/diagnostics[2]
2010-9-26 23:37:38 Info Level is 1
2010-9-26 23:37:38 Info EleCount is 11
2010-9-26 23:38:01 Info End of log..

 类似资料: