Last active
December 24, 2015 00:29
-
-
Save cfedde/6717131 to your computer and use it in GitHub Desktop.
How do I get the value of the 'type=' attribute out of the 'command' tag in this XML frag?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DB<12> p $r->at('command')->to_xml | |
<command type="Error" xmlns="" xmlns:c="C" xsi:type="c:ErrorResponse"><summary>[Error 4007] Invalid login ID: cfedde001c_as01</summary><summaryEnglish>[Error 4007] Invalid login ID: cfedde001c_as01</summaryEnglish></command> | |
DB<13> x $r->at('command')->attr | |
empty array |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment