I am not a programmer – so I have run into a problem and would be glad if someone could help me – thanks!
I describe the problem:
I need to include data from an xml file into my website to parse a table on a page.
So I installed XMLMadeSimple2 and loaded the xml file as a feed.
This printed neatly an xml tree with objects and arrays onto my page. Looks like this: Also when I add "debug“ to my page the console shows this: Now the XMLMadeSimple2 help tells me to access the data in an array like this:
Code: Select all
{$xml->team->@attributes->name}
Code: Select all
{$xml->$team->@attributes->name}
Code: Select all
Syntax error in template "content:content:content_en" on line 3 "{$xml->team->@attributes->name}" - Unexpected "@", expected one of: "{" , DOLLARID , "id, name" , "$"
Code: Select all
{$xml->team.attributes.name}
As I said: I am not a programmer. So I am lost with this problem.
Could someone help me? Thank you
Reinhard
P.S.: If there is an easier way of processing an xml file to access the data for my website – I‘d be more than glad to learn. Thank you!