Starting a new project and planning to store all my web content in XML. I don't have access to the database, so it looked like the next best. One thing I'm struggling with is to structure the XML for the links (which will later be converted using XSLT). It should also be flexible enough. Below I started with this, but I'm starting to doubt it.
<links> <link> <url>http://google.com</url> <description>Google</description> <link> <link> <url>http://yahoo.com</url> <description>Yahoo</description> <links> <url>http://yahoo.com/search</url> <description>Search</description> </link> <link> </links>
It should transform into
Google Yahoo Search
Perhaps something like this might work better.
<links> <link href="http://google.com">Google</link> <link href="http://yahoo.com">Yahoo <link href="http://yahoo.com/search">Search</link> </link> </links>
Does anyone have a link that correctly describes the structuring of web content in XML?
Thanks.:)
source share