Save as XML format
Posted: 2002-11-12 12:19:49
Hey
I have a suggestion for the save as XML format. In the current format all the datafields are stored as attributes of the movie element.
I think it would be a lot better if all datafields where separate child elements of a movie element.
It's not that it's anything wrong with your XML. I just think the structure makes it hard to read and also more important to do XSL transforms for.
I would suggest something like this:
This structure would probably also be better prepared for future versions of Movie catalog with custom datafields. For example it would be possible to have unlimited number of extra datafields and also an internal structure amongst them. For example:
I'm not complaining it's just an idea.
/w
I have a suggestion for the save as XML format. In the current format all the datafields are stored as attributes of the movie element.
Code: Select all
<Movie Number="" Actors="" Description="" ...>
It's not that it's anything wrong with your XML. I just think the structure makes it hard to read and also more important to do XSL transforms for.
I would suggest something like this:
Code: Select all
<movie>
<actors></actors>
<description></description>
...
</movie>
Code: Select all
<comments>
<comment>...</comment>
<comment>...</comment>
</comments>
/w