Jump to content

PHP XML


Linuc

Recommended Posts

Hi,

 

I am trying to access the value for Admin1 as per using PHP Dom:

 

<domain:contact type="admin">Admin1</domain:contact>

 

I tried many varients, like:

 

$admin = $doc->getElementsByTagName('contact')->item(0)->childNodes->getElementsByTagName('type')->item(0)->nodeValue;

 

No luck.

 

Any advise would be appreciated.

 

Link to comment
https://forums.phpfreaks.com/topic/290862-php-xml/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.