文件名称:DOMCount
- 所属分类:
- Windows编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1.38mb
- 下载次数:
- 0次
- 提 供 者:
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
自己开发的XML DOM计数程序DOMCount,使用DOM API解析XML文件,构造DOM树,然后遍历DOM树并计算元素个数(仅使用一个API调用)。
DOMCount解析XML文件,计算其元素数并打印。
用法:
DOMCount [options]<XML file|List file>
Options:
-l,指示输入文件是一个列表文件,其中含有多个xml文件。默认情况下,该选项不存在,这时表明输入的是一个XML文件。
-v=xxx,Schema验证,xxx可以是:always,never或auto。默认情况下xxx=auto,如果DOCTYPE声明或schema声明出现在XML文档中,将进行验证:xxx=always,强制进行验证:xxx=never,不使用验证。
-n,允许处理名字空间。默认情况下不允许。
-s,允许处理大纲。默认情况下不允许。
-f,允许对整个大纲约束检查。默认情况下不允许。
-locale=ll_CC,指定本地编码,默认是en_US。
-?,显示帮助。
这里是DOMCount的输出:
DOMCount -v=always personal.xml
personal.xml: 20 ms (37 elems)
注意,程序运行时间将会视你机器处理器的不同而不同。-err
DOMCount解析XML文件,计算其元素数并打印。
用法:
DOMCount [options]<XML file|List file>
Options:
-l,指示输入文件是一个列表文件,其中含有多个xml文件。默认情况下,该选项不存在,这时表明输入的是一个XML文件。
-v=xxx,Schema验证,xxx可以是:always,never或auto。默认情况下xxx=auto,如果DOCTYPE声明或schema声明出现在XML文档中,将进行验证:xxx=always,强制进行验证:xxx=never,不使用验证。
-n,允许处理名字空间。默认情况下不允许。
-s,允许处理大纲。默认情况下不允许。
-f,允许对整个大纲约束检查。默认情况下不允许。
-locale=ll_CC,指定本地编码,默认是en_US。
-?,显示帮助。
这里是DOMCount的输出:
DOMCount -v=always personal.xml
personal.xml: 20 ms (37 elems)
注意,程序运行时间将会视你机器处理器的不同而不同。-err
(系统自动生成,下载前可以参看下载内容)
下载文件列表
DOMCount
........\AbstractDOMParser.hpp
........\AIXDefs.hpp
........\ArrayIndexOutOfBoundsException.hpp
........\AutoSense.hpp
........\BaseRefVectorOf.c
........\BaseRefVectorOf.hpp
........\BeOSDefs.hpp
........\BMPattern.hpp
........\BorlandCDefs.hpp
........\ConditionToken.hpp
........\CSetDefs.hpp
........\CygwinDefs.hpp
........\DatatypeValidator.hpp
........\Debug
........\DocTypeHandler.hpp
........\DOM.hpp
........\DOMAttr.hpp
........\DOMBuilder.hpp
........\DOMCDATASection.hpp
........\DOMCharacterData.hpp
........\DOMComment.hpp
........\DOMConfiguration.hpp
........\DOMCount.clw
........\DOMCount.cpp
........\DOMCount.dsp
........\DOMCount.dsw
........\DOMCount.exe
........\DOMCount.h
........\DOMCount.hpp
........\DOMCount.ncb
........\DOMCount.opt
........\DOMCount.plg
........\DOMCount.rc
........\DOMCount_cpp.cmd
........\DOMDocument.hpp
........\DOMDocumentFragment.hpp
........\DOMDocumentRange.hpp
........\DOMDocumentTraversal.hpp
........\DOMDocumentType.hpp
........\DOMElement.hpp
........\DOMEntity.hpp
........\DOMEntityReference.hpp
........\DOMEntityResolver.hpp
........\DOMError.hpp
........\DOMErrorHandler.hpp
........\DOMException.hpp
........\DOMImplementation.hpp
........\DOMImplementationLS.hpp
........\DOMImplementationRegistry.hpp
........\DOMImplementationSource.hpp
........\DOMInputSource.hpp
........\DOMLocator.hpp
........\DOMNamedNodeMap.hpp
........\DOMNode.hpp
........\DOMNodeFilter.hpp
........\DOMNodeIterator.hpp
........\DOMNodeList.hpp
........\DOMNotation.hpp
........\DOMProcessingInstruction.hpp
........\DOMRange.hpp
........\DOMRangeException.hpp
........\DOMText.hpp
........\DOMTreeWalker.hpp
........\DOMTypeInfo.hpp
........\DOMUserDataHandler.hpp
........\DOMWriter.hpp
........\DOMWriterFilter.hpp
........\DOMXPathEvaluator.hpp
........\DOMXPathException.hpp
........\DOMXPathExpression.hpp
........\DOMXPathNamespace.hpp
........\DOMXPathNSResolver.hpp
........\DOMXPathResult.hpp
........\DTDAttDef.hpp
........\DTDElementDecl.hpp
........\DTDEntityDecl.hpp
........\EmptyStackException.hpp
........\FreeBSDDefs.hpp
........\GCCDefs.hpp
........\HashBase.hpp
........\HashXMLCh.hpp
........\HPCCDefs.hpp
........\HPUXDefs.hpp
........\IBMVAOS2Defs.hpp
........\IBMVAW32Defs.hpp
........\IllegalArgumentException.hpp
........\InterixDefs.hpp
........\IRIXDefs.hpp
........\Janitor.c
........\Janitor.hpp
........\KVStringPair.hpp
........\LinuxDefs.hpp
........\MemoryManager.hpp
........\MIPSproDefs.hpp
........\ModifierToken.hpp
........\Mutexes.hpp
........\MVSCPPDefs.hpp
........\NameIdPool.c
........\NameIdPool.hpp
........\AbstractDOMParser.hpp
........\AIXDefs.hpp
........\ArrayIndexOutOfBoundsException.hpp
........\AutoSense.hpp
........\BaseRefVectorOf.c
........\BaseRefVectorOf.hpp
........\BeOSDefs.hpp
........\BMPattern.hpp
........\BorlandCDefs.hpp
........\ConditionToken.hpp
........\CSetDefs.hpp
........\CygwinDefs.hpp
........\DatatypeValidator.hpp
........\Debug
........\DocTypeHandler.hpp
........\DOM.hpp
........\DOMAttr.hpp
........\DOMBuilder.hpp
........\DOMCDATASection.hpp
........\DOMCharacterData.hpp
........\DOMComment.hpp
........\DOMConfiguration.hpp
........\DOMCount.clw
........\DOMCount.cpp
........\DOMCount.dsp
........\DOMCount.dsw
........\DOMCount.exe
........\DOMCount.h
........\DOMCount.hpp
........\DOMCount.ncb
........\DOMCount.opt
........\DOMCount.plg
........\DOMCount.rc
........\DOMCount_cpp.cmd
........\DOMDocument.hpp
........\DOMDocumentFragment.hpp
........\DOMDocumentRange.hpp
........\DOMDocumentTraversal.hpp
........\DOMDocumentType.hpp
........\DOMElement.hpp
........\DOMEntity.hpp
........\DOMEntityReference.hpp
........\DOMEntityResolver.hpp
........\DOMError.hpp
........\DOMErrorHandler.hpp
........\DOMException.hpp
........\DOMImplementation.hpp
........\DOMImplementationLS.hpp
........\DOMImplementationRegistry.hpp
........\DOMImplementationSource.hpp
........\DOMInputSource.hpp
........\DOMLocator.hpp
........\DOMNamedNodeMap.hpp
........\DOMNode.hpp
........\DOMNodeFilter.hpp
........\DOMNodeIterator.hpp
........\DOMNodeList.hpp
........\DOMNotation.hpp
........\DOMProcessingInstruction.hpp
........\DOMRange.hpp
........\DOMRangeException.hpp
........\DOMText.hpp
........\DOMTreeWalker.hpp
........\DOMTypeInfo.hpp
........\DOMUserDataHandler.hpp
........\DOMWriter.hpp
........\DOMWriterFilter.hpp
........\DOMXPathEvaluator.hpp
........\DOMXPathException.hpp
........\DOMXPathExpression.hpp
........\DOMXPathNamespace.hpp
........\DOMXPathNSResolver.hpp
........\DOMXPathResult.hpp
........\DTDAttDef.hpp
........\DTDElementDecl.hpp
........\DTDEntityDecl.hpp
........\EmptyStackException.hpp
........\FreeBSDDefs.hpp
........\GCCDefs.hpp
........\HashBase.hpp
........\HashXMLCh.hpp
........\HPCCDefs.hpp
........\HPUXDefs.hpp
........\IBMVAOS2Defs.hpp
........\IBMVAW32Defs.hpp
........\IllegalArgumentException.hpp
........\InterixDefs.hpp
........\IRIXDefs.hpp
........\Janitor.c
........\Janitor.hpp
........\KVStringPair.hpp
........\LinuxDefs.hpp
........\MemoryManager.hpp
........\MIPSproDefs.hpp
........\ModifierToken.hpp
........\Mutexes.hpp
........\MVSCPPDefs.hpp
........\NameIdPool.c
........\NameIdPool.hpp