duquxml,该怎么处理

WBOY
풀어 주다: 2016-06-13 12:19:24
원래의
904명이 탐색했습니다.

duquxml







有人会用php读去这种xml文件吗?

帮帮忙
------解决思路----------------------

$s =<<< TXT<br /><row dataType="TR" ID="07A72498325C0B0DE050C7707961FCF8" agentCode="253001001001001" transferId="C81_AGIN3439952663804" tradeNo="141112789497906" platformType="AGIN" playerName="C81AGIN79514" transferType="IN" transferAmount="100" previousAmount="0" currentAmount="100" currency="CNY" exchangeRate="1" IP="0" flag="0" creationTime="2014-11-12 06:08:12" gameCode="" /><br /><row dataType="TR" ID="07A75AD0A35E1114E050C7707961FF13" agentCode="253001001001001" transferId="C81_AGIN3439952663804" tradeNo="141112789497906" platformType="AGIN" playerName="C81AGIN79514" transferType="IN" transferAmount="100" previousAmount="0" currentAmount="100" currency="CNY" exchangeRate="1" IP="0" flag="0" creationTime="2014-11-12 06:08:12" gameCode="" /><br /><row dataType="TR" ID="07A72498325D0B0DE050C7707961FCF8" agentCode="253001001001001" transferId="C81_AGIN3439952663804" tradeNo="141112789497906" platformType="AGIN" playerName="C81AGIN79514" transferType="IN" transferAmount="100" previousAmount="0" currentAmount="100" currency="CNY" exchangeRate="1" IP="0" flag="0" creationTime="2014-11-12 06:08:12" gameCode="" /><br /><row dataType="TR" ID="07A75AD0A3921114E050C7707961FF13" agentCode="253001001001001" transferId="C81_AGIN3439952663804" tradeNo="141112789497906" platformType="AGIN" playerName="C81AGIN79514" transferType="IN" transferAmount="100" previousAmount="0" currentAmount="100" currency="CNY" exchangeRate="1" IP="0" flag="0" creationTime="2014-11-12 06:08:12" gameCode="" /><br />TXT;<br /><br />$x = simplexml_load_string("<root>$s</root>");<br />print_r($x);
로그인 후 복사
SimpleXMLElement Object<br />(<br />    [row] => Array<br />        (<br />            [0] => SimpleXMLElement Object<br />                (<br />                    [@attributes] => Array<br />                        (<br />                            [dataType] => TR<br />                            [ID] => 07A72498325C0B0DE050C7707961FCF8<br />                            [agentCode] => 253001001001001<br />                            [transferId] => C81_AGIN3439952663804<br />                            [tradeNo] => 141112789497906<br />                            [platformType] => AGIN<br />                            [playerName] => C81AGIN79514<br />                            [transferType] => IN<br />                            [transferAmount] => 100<br />                            [previousAmount] => 0<br />                            [currentAmount] => 100<br />                            [currency] => CNY<br />                            [exchangeRate] => 1<br />                            [IP] => 0<br />                            [flag] => 0<br />                            [creationTime] => 2014-11-12 06:08:12<br />                            [gameCode] => <br />                        )<br /><br />                )<br /><br />            [1] => SimpleXMLElement Object<br />                (<br />                    [@attributes] => Array<br />                        (<br />                            [dataType] => TR<br />                            [ID] => 07A75AD0A35E1114E050C7707961FF13<br />                            [agentCode] => 253001001001001<br />                            [transferId] => C81_AGIN3439952663804<br />                            [tradeNo] => 141112789497906<br />                            [platformType] => AGIN<br />                            [playerName] => C81AGIN79514<br />                            [transferType] => IN<br />                            [transferAmount] => 100<br />                            [previousAmount] => 0<br />                            [currentAmount] => 100<br />                            [currency] => CNY<br />                            [exchangeRate] => 1<br />                            [IP] => 0<br />                            [flag] => 0<br />                            [creationTime] => 2014-11-12 06:08:12<br />                            [gameCode] => <br />                        )<br /><br />                )<br /><br />            [2] => SimpleXMLElement Object<br />                (<br />                    [@attributes] => Array<br />                        (<br />                            [dataType] => TR<br />                            [ID] => 07A72498325D0B0DE050C7707961FCF8<br />                            [agentCode] => 253001001001001<br />                            [transferId] => C81_AGIN3439952663804<br />                            [tradeNo] => 141112789497906<br />                            [platformType] => AGIN<br />                            [playerName] => C81AGIN79514<br />                            [transferType] => IN<br />                            [transferAmount] => 100<br />                            [previousAmount] => 0<br />                            [currentAmount] => 100<br />                            [currency] => CNY<br />                            [exchangeRate] => 1<br />                            [IP] => 0<br />                            [flag] => 0<br />                            [creationTime] => 2014-11-12 06:08:12<br />                            [gameCode] => <br />                        )<br /><br />                )<br /><br />            [3] => SimpleXMLElement Object<br />                (<br />                    [@attributes] => Array<br />                        (<br />                            [dataType] => TR<br />                            [ID] => 07A75AD0A3921114E050C7707961FF13<br />                            [agentCode] => 253001001001001<br />                            [transferId] => C81_AGIN3439952663804<br />                            [tradeNo] => 141112789497906<br />                            [platformType] => AGIN<br />                            [playerName] => C81AGIN79514<br />                            [transferType] => IN<br />                            [transferAmount] => 100<br />                            [previousAmount] => 0<br />                            [currentAmount] => 100<br />                            [currency] => CNY<br />                            [exchangeRate] => 1<br />                            [IP] => 0<br />                            [flag] => 0<br />                            [creationTime] => 2014-11-12 06:08:12<br />                            [gameCode] => <br />                        )<br /><br />                )<br /><br />        )<br /><br />)<br /><br />
로그인 후 복사

관련 라벨:
원천:php.cn
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿