如何计算xml文件中的记录总数 [英] How to count total number of records in xml file

查看:146
本文介绍了如何计算xml文件中的记录总数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友







如何计算记录总数我的xml文件。



问候



AmyAli

Hello Friends



How it is possible to count total number of records are present in my xml file.

Regards

AmyAli

推荐答案

XML不支持记录的概念,因此,没有什么可以计算的;这是一个含糊不清或不正确的问题。



XML表示称为元素的注释的树结构。您可以使用几乎任何XML解析器计算(或者说,每个树级别上的元素数量,或与元素数量相关的其他内容)。这取决于您可以使用的平台/语言/库。



-SA
XML does not support the concept of "record", so, there is nothing to count; and this is an ambiguous or incorrect question.

XML represent a tree structure of notes called "elements". You can count then (or, say, number of elements on each tree level, or something else related to the number of elements) using nearly any XML parser. It depends on what platform/language/library you can use.

—SA


这篇关于如何计算xml文件中的记录总数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆