Jump to content

Problem calling objects parsed from XML.


Chris92

Recommended Posts

Hi, I'm using an EPP for boring stuff that wont interest you guys anyway.

 

The problem I'm having is the EPP comes with its own API which parses XML for you.

 

The problem with it parsing XML is that the XML that is received comes in a format which has :'s in the keys.

 

Example:

 

SidnEppResult Object
(
    [message:SidnEppResult:private] => 
    [status:SidnEppResult:private] => domain_unavailable
    [code:SidnEppResult:private] => 
    [notifyUser:SidnEppResult:private] => 
)

 

Then I want to be able to put this information to use, so I call the constants like this:

<?php
echo $object->status:SidnEppResult:private;

 

The problem then is that PHP throws me a little parse error.

 

Any help is appreciated,

 

Chris

Link to comment
https://forums.phpfreaks.com/topic/214103-problem-calling-objects-parsed-from-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.