Monday, November 7, 2011

Muddiest Point for XML

Can XML or its stylesheets be used to specify display order? So, say I always want my data to display in this order:
<unitid>LIS 2600</unitid>
<title>Introduction to IT</title>
<date>November 7, 2011</date>
<subject>Muddiest Point for XML</subject>

Is there any code (or whatever) I can add to force it to display as such despite that it was entered it in a different order? Say for instance:
<title>Introduction to IT</title>
<unitid>LIS 2600</unitid>
<subject>Muddiest Point for XML</subject>
<date>November 7, 2011</date>

Or will it just not parse correctly? If that's the case, is there a way to automatically rearrange my tags and their text?

No comments:

Post a Comment