如何解决使用PHP从XML原始数据中选择并打印数据
我想从XML原始数据中选择数据,这些数据是从网站获取并使用PHP打印的。同样,如果有多个数据,如何连续打印。
这是示例数据
<Details>
<PDetails>
<ID>CCE667/02</ID>
<Title>Test Title</Title>
<Text1>Link</Text1>
<Text2>Description</Text2>
<Text3>Description</Text3>
<Cost>54.21</Cost>
<tyepee>Normal</typeee>
<Type>Business</Type>
<Duration>12.15</Duration>
<DurationType>1</DurationType>
<Currency>USD</Currency>
<Symbol>$</Symbol>
<CategoryIDs>1789</CategoryIDs>
<testID/>
<method/>
</PDetails>
<PDetails>
<ID>CCE667/03</ID>
<Title>Test Titleaa</Title>
<Text1>Linka</Text1>
<Text2>Descriptiona</Text2>
<Text3>Descriptiona</Text3>
<Cost>15.25</Cost>
<tyepee>Normal</typeee>
<Type>Business</Type>
<Duration>45.15</Duration>
<DurationType>1</DurationType>
<Currency>USD</Currency>
<Symbol>$</Symbol>
<CategoryIDs>489</CategoryIDs>
<testID/>
<method/>
</PDetails>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。