Scheinen um ein Problem zu sein, die das Feld "admin" unter Kontakttyp erfassenParse XML Dom mit PHP
<epp:epp xmlns:epp="urn:ietf:params:xml:ns:epp-1.0">
<epp:response>
<epp:result code="1000">
<epp:msg>Domain Info Command completed successfully</epp:msg>
</epp:result>
<epp:resData>
<domain:infData xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>exampledomain.com</domain:name>
<domain:roid>DOM_1E-PDT</domain:roid>
<domain:status s="ok"/>
<domain:registrant>exampleregistrant</domain:registrant>
<domain:contact type="admin">admincontact</domain:contact>
<domain:contact type="tech">techcontact</domain:contact>
<domain:contact type="billing">billingcontact</domain:contact>
<domain:contact type="reseller">resellercontact</domain:contact>
-Code habe ich versucht war:
$adminid = $doc->getElementsByTagName('admin')->item(0)->nodeValue;
Jede Hilfe sehr geschätzt.
Sind die anderen Felder mit dem gleichen Code arbeiten, dann? Wie genau laden Sie in '$ doc'? Aus welchem Typ hast du es gemacht? Das ist definitiv wichtig. - Welche Fehler bekommst du auch? – NoobishPro
"admin" ist kein Tag-Name, es ist ein Attribut. – fusion3k