API output style
I hate to ask, but I've searched all over the internet trying to figure this out.
So, I get an API to display information from Education.com. I got all the school information, location information, etc. But how do I style it?
I want to make a nice table, the output is like this:
<params>
<param>
<value>
<array>
<data>
<value>
<struct>
<member>
<name>school</name>
<value>
<struct>
<member>
<name>schoolid</name>
<value>
<string>17914</string>
</value>
</member>
<member>
<name>schoolname</name>
<value>
<string>Fair Oaks Community High School</string>
</value>
</member>
Would I just use CSS or did I forget about the step? I'm sorry for my ignorance.
Regards, Karl
+3
source to share
2 answers
This is the perfect solution for XSLT. You can iterate over the elements in this XML and output them directly to HTML.
This article details the required steps. http://www.tonymarston.net/php-mysql/xsl.html
+1
source to share