simplexml

    0熱度

    1回答

    我對xml不太好,所以我需要一些幫助。這是我想用來轉換爲xml輸出的數組。 Array ( [invoices] => Array ( [0] => Array ( [client_name] => Awesome Client [account_number] => [date_created]

    1熱度

    2回答

    如何將name或name1變量設置爲$ event的name屬性的值?當我遍歷代碼名稱時,等於一個沒有值的simplexmlobject,並且name2爲null。 $ name3 = $ event-> attributes() - > name;也不起作用。 我很困惑如何正確使用它。 $curl = curl_init(); curl_setopt_array($curl, Array(

    1熱度

    2回答

    您好我有問題在使用名稱空間獲取XML文件中的屬性的值。 <module name="ietf-inet-types" xmlns="urn:ietf:params:xml:ns:yang:yin:1" xmlns:inet="urn:ietf:params:xml:ns:yang:ietf-inet-types"> <namespace uri="urn:ietf

    1熱度

    2回答

    無效元素名稱這是我的xml: <?xml version="1.0"?> <data> <client_name>Awesome Client</client_name> <account_number/> <date_created>02/12/2016</date_created> <form_number>4126</form_number>

    1熱度

    2回答

    我想從這個XML文件的標籤名稱獲取元素。 <cogxml> <namespace name="http://www.lirmm.fr/cogui#" prefix=""/> <support name="vocabulary"> <conceptTypes> <ctype id="http://www.lirmm.fr/cogui#ct_043ea91

    0熱度

    1回答

    我試圖提取XML SOAP響應與Symfony2中和PHP 5.6的工作價值觀和我讀過的文檔,並嘗試過很多方法,但還是不能讓數據 這裏是我的XML字符串 <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:provisioningWithDataResponse xmlns="UR

    0熱度

    1回答

    的XML這是我的xml文件.. <?xml version="1.0" encoding="ISO-8859-1"?> <OTA_Langee xmlns="http://www.opentravel.org/OTA/2003/05" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="htt

    2熱度

    1回答

    您好我想從這些肥皂消息中獲取元素名稱以確定要採取的操作但是我得到正文在這種情況下accountInformationRequest是我之後。我是在一個單一的URL獲取多個請求因而需要獲得元素name.These是我試圖 $xml=simplexml_load_string($content); $xml->registerXPathNamespace('env', 'http://schemas

    0熱度

    2回答

    我想讀取以下xml並通過它們的id值查找特定的xml標記,最後我想複製這些選定的標記使用PHP用戶定義類的方法在另一個內部的xml:樣品如下: <items> <item> <id>1</id> <name>Item-1</name> <price>10</price> </item> <item> <id>2<

    0熱度

    2回答

    我正在開發項目,其中一個功能是將數據添加到XML文件中,稍後將提取該文件,提取部分運行良好,但不是添加部分。 我創建了一個新的php文件,其中包含代碼XML添加部分,但仍然無法正常工作。 這裏是php文件: <? $xml = simplexml_load_file('test.xml'); $msg = $xml->addChild('msg'); $msg->addChild('name