如何在php中打开并使用此xml文件? [英] How do I open and use this xml file with php ?

查看:69
本文介绍了如何在php中打开并使用此xml文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我正在查看从clickbank下载的内容,我注意到

它有两个文件,后缀非常小.dtd我在下面列出了一个巨大的文件26 Mb,后缀为.xml


(不知道我是否应该使用代码标签文件?是的,你应该,Mod)


这是.dtd

Hi,

I am looking at a download from clickbank and I notice that
it has two files, a very small on suffixed with .dtd which I
list below, and a huge file 26 Mb suffixed with .xml

( not sure if I should use the "code" tags for these files?yes, you should, Mod)

Here is the .dtd

展开 | < span class =codeLinkonclick =selectAll(this);>选择 | 换行 | 行号

推荐答案

你尝试过simplexml吗?

http://php.net/manual/en/book.simplexml.php


非常容易使用。将XML转换为对象。仅适用于PHP5
Did you try simplexml?

http://php.net/manual/en/book.simplexml.php

Very easy to use. Converts XML to object. Only available from PHP5


您好,

感谢您的提示。


我已阅读并尽可能我可以告诉

这是我需要做的事情:

Hi,
Thanks for the tip.

I have read it and as far as I can tell
this is what I need to do:

展开 | 选择 | Wrap | 行号


如果您知道xml文件的路径,则可以执行以下操作:

If you know path to your xml file you can do this:

展开 | 选择 | Wrap | 行号


这篇关于如何在php中打开并使用此xml文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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