简体   繁体   English

在php中读取多个xml文件

[英]Reading multiple xml files in php

I have 30 android clients that send xml files to the server every one hour.I need to read each file which is pretty long(over 1700 lines per file) but i am not so sure how reliable is for this kind of tasks. 我有30个Android客户端,每隔一小时就会向服务器发送一个xml文件。我需要读取每个文件很长(每个文件超过1700行),但我不太确定这种任务的可靠性。

Should i continue reading with php or is C++ or java program better suited. 我应该继续阅读PHP或更适合C ++或Java程序。

With PHP you can use 2 good library: SimpleXML for simple functions or DOM for something more complexe. 使用PHP,你可以使用2个好的库:SimpleXML用于简单的函数,DOM用于更复杂的东西。

You can have a idea of what PHP can do with XML files here: http://www.php.net/manual/fr/refs.xml.php 您可以在此处了解PHP可以对XML文件执行的操作: http//www.php.net/manual/fr/refs.xml.php

If you know the names of nodes you need to read, SimpleXML is the simple way to manage yours datas. 如果您知道需要阅读的节点的名称,SimpleXML是管理您的数据的简单方法。 You actually can do what you want with XML files on PHP. 实际上你可以用PHP上的XML文件做你想做的事。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM