Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difficulties to to parse XML Elements from $response #258

Open
stevang opened this issue Apr 25, 2017 · 0 comments
Open

Difficulties to to parse XML Elements from $response #258

stevang opened this issue Apr 25, 2017 · 0 comments

Comments

@stevang
Copy link

stevang commented Apr 25, 2017

I have difficulties to get the xyz and timestamp element. What am i doing wrong?
echo $response->body->content-xzy->xyz;
does not work. i would realy appreciate some help how to get these values from the response.

this is the first part of the xml response containing the needed values

Httpful\Response Object
(
    [body] => SimpleXMLElement Object
        (
            [content-xyz] => SimpleXMLElement Object
                (
                    [xyz] => 123456789012
                    [timestamp] => 2017-04-24T20:22:52Z
                )

        )

    [raw_body] => 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant