Parser only returns first result #110
Unanswered
MichaelAggerholm
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Did you ever figure this out? It's wild. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello.
I am trying to parse through an xml file:
var_dump($book);
When done, i dump the book data, but i only get the first child. so if i have 100 books , its only the first book that i receive.
Should i be using a foreach or something here? from what i can read, it should parse through the entire file.
Result:
array(7) { ["supplierId"]=> string(5) "bk101" ["author"]=> string(20) "Gambardella, Matthew" ["title"]=> string(21) "XML Developer's Guide" ["genre"]=> string(8) "Computer" ["price"]=> string(5) "44.95" ["publishDate"]=> string(10) "2000-10-01" ["description"]=> string(63) "An in-depth look at creating applications with XML." }
Beta Was this translation helpful? Give feedback.
All reactions