Hi,
In the following xml doc, which is meant as an exercise for XSLT Transformations, and later FLASH. I'm soliciting pointers on the well-formedness of the document. Also when one should use an attribute, instead of a new element.
<?xml version="1.0" encoding="iso-8859-1"?>
<employeeRecords>
<employee id="1">
<name>
<first>Mike</first>
<last>Watt</last>
</name>
<idNumber>7765</idNumber>
<position>Vice-President</position>
<sex>Male</sex>
</employee>
<employee id="2">
<name>
<first>Allison</first>
<last>Cole</last>
</name>
<idNumber>7225</idNumber>
<position>President</position>
<sex>Female</sex>
</employee>
<employee id="3">
<name>
<first>Albert</first>
<last>Filson</last>
</name>
<idNumber>7254</idNumber>
<position>Dock Supervisor</position>
<sex>Male</sex>
</employee>
<employee id="4">
<name>
<first>Denice</first>
<last>Clarke</last>
</name>
<idNumber>3636</idNumber>
<position>Administrative Assistant</position>
<sex>Female</sex>
</employee>
<employee id="5">
<name>
<first>Janet</first>
<last>Wood</last>
</name>
<idNumber>1889</idNumber>
<position>Sr. Vice President</position>
<sex>Female</sex>
</employee>
</employeeRecords>
In the following xml doc, which is meant as an exercise for XSLT Transformations, and later FLASH. I'm soliciting pointers on the well-formedness of the document. Also when one should use an attribute, instead of a new element.
<?xml version="1.0" encoding="iso-8859-1"?>
<employeeRecords>
<employee id="1">
<name>
<first>Mike</first>
<last>Watt</last>
</name>
<idNumber>7765</idNumber>
<position>Vice-President</position>
<sex>Male</sex>
</employee>
<employee id="2">
<name>
<first>Allison</first>
<last>Cole</last>
</name>
<idNumber>7225</idNumber>
<position>President</position>
<sex>Female</sex>
</employee>
<employee id="3">
<name>
<first>Albert</first>
<last>Filson</last>
</name>
<idNumber>7254</idNumber>
<position>Dock Supervisor</position>
<sex>Male</sex>
</employee>
<employee id="4">
<name>
<first>Denice</first>
<last>Clarke</last>
</name>
<idNumber>3636</idNumber>
<position>Administrative Assistant</position>
<sex>Female</sex>
</employee>
<employee id="5">
<name>
<first>Janet</first>
<last>Wood</last>
</name>
<idNumber>1889</idNumber>
<position>Sr. Vice President</position>
<sex>Female</sex>
</employee>
</employeeRecords>