PHP-Scripte PHP-Tutorials PHP-Jobs und vieles mehr

PHP-Scripte PHP-Tutorials PHP-Jobs und vieles mehr (https://www.php-resource.de/forum/)
-   XML (https://www.php-resource.de/forum/xml/)
-   -   xml for php processing (https://www.php-resource.de/forum/xml/106639-xml-for-php-processing.html)

Gabrial 14-06-2019 08:28

xml for php processing
 
Hello everyone,,,
I would like to further process the following value from this xml file:
<external-id> ext-id </ external-id>

<? xml version = "1.0" encoding = "UTF-8"?>
<! DOCTYPE EVENT-DATA (View Source for full doctype ...)>
<EVENT-mobdro lucky patcher kodi DATA>
<SUBSCRIPTION>
<subscribe-data>
<external-id> ext-id </ external-id>
</ subscribe-data>
</ SUBSCRIPTION>
</ EVENT- DATA>

I could not get on with this script; there was an error message '' ...
In addition, the value "external-id" should be further processed as a variable.

<?
$ data = simplexml_load_file ('ended.xml');
print utf8_decode ($ data-> subscribe-data [0] -> external-id). "\ n <br>";
?>

Can someone help me there.
Reply with quote

goth 24-06-2019 08:53

Maybe
PHP-Code:

$data->{'subscribe-data'}[0]->{'external-id'

as described in manual?

mobdrobiz 08-10-2019 16:35

Zitat:

Zitat von Gabrial (Beitrag 675754)
Hello everyone,,,
I would like to further process the following value from this xml file:
<external-id> ext-id </ external-id>

<? xml version = "1.0" encoding = "UTF-8"?>
<! DOCTYPE EVENT-DATA (View Source for full doctype ...)>
<EVENT-mobdro lucky patcher kodi DATA>
<SUBSCRIPTION>
<subscribe-data>
<external-id> ext-id </ external-id>
</ subscribe-data>
</ SUBSCRIPTION>
</ EVENT- DATA>

I could not get on with this script; there was an error message '' ...
In addition, the value "external-id" should be further processed as a variable.

<?
$ data = simplexml_load_file ('ended.xml');
print utf8_decode ($ data-> subscribe-data [0] -> external-id). "\ n <br>";
?>

Can someone help me there.
Reply with quote

i Have Same Problem


Alle Zeitangaben in WEZ +2. Es ist jetzt 23:52 Uhr.

Powered by vBulletin® Version 3.8.2 (Deutsch)
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
[c] ebiz-consult GmbH & Co. KG