Sample XML Document
Here is an example of what theXML document looks like. Below you will find detailed information about this document.
<?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="SRRSchedule.xsl"?> <SRRScheduleData Version="1" TableWidthPercent="true" LanguageCode="en" Direction="ltr" DateTextCase="uppercase"> <Columns> <Heading TextAlign="left" Width="11%">Date</Heading> <Heading TextAlign="left" Width="11%">Hall Attendant</Heading> <Heading TextAlign="left" Width="11%">Car Park</Heading> <Heading TextAlign="left" Width="11%">Sound</Heading> <Heading TextAlign="left" Width="11%">Platform</Heading> <Heading TextAlign="left" Width="11%">Mic Left</Heading> <Heading TextAlign="left" Width="11%">Mic Right</Heading> <Heading TextAlign="left" Width="11%">Chairman</Heading> <Heading TextAlign="left" Width="11%">Watchtower Reader</Heading> </Columns> <DutySlipLabels> <Title>Assignment Duties</Title> <Date>Date</Date> <Assignments>Assignments</Assignments> </DutySlipLabels> <Schedule> <ReportTitle>Assignments - October 2018</ReportTitle> <MonthAssignments IncludeHeadings="true" IncludeGap="false"> <AssignmentRow RowType="Odd"> <Date Day="4" DayShort="Thu" DayFull="Thursday" Month="10" MonthShort="Oct" MonthFull="October" Year="2018">Thu, October 04</Date> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> </AssignmentRow> <AssignmentRow RowType="Even"> <Date Day="7" DayShort="Sun" DayFull="Sunday" Month="10" MonthShort="Oct" MonthFull="October" Year="2018">Sun, October 07</Date> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> </AssignmentRow> <AssignmentRow RowType="Odd"> <Date Day="11" DayShort="Thu" DayFull="Thursday" Month="10" MonthShort="Oct" MonthFull="October" Year="2018">Thu, October 11</Date> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> </AssignmentRow> <AssignmentRow RowType="Even"> <Date Day="14" DayShort="Sun" DayFull="Sunday" Month="10" MonthShort="Oct" MonthFull="October" Year="2018">Sun, October 14</Date> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> </AssignmentRow> <AssignmentRow RowType="Odd"> <Date Day="18" DayShort="Thu" DayFull="Thursday" Month="10" MonthShort="Oct" MonthFull="October" Year="2018">Thu, October 18</Date> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> </AssignmentRow> <AssignmentRow RowType="Even"> <Date Day="21" DayShort="Sun" DayFull="Sunday" Month="10" MonthShort="Oct" MonthFull="October" Year="2018">Sun, October 21</Date> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> </AssignmentRow> <AssignmentRow RowType="Odd"> <Date Day="25" DayShort="Thu" DayFull="Thursday" Month="10" MonthShort="Oct" MonthFull="October" Year="2018">Thu, October 25</Date> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> </AssignmentRow> <AssignmentRow RowType="Even"> <Date Day="28" DayShort="Sun" DayFull="Sunday" Month="10" MonthShort="Oct" MonthFull="October" Year="2018">Sun, October 28</Date> <SpecialEvent> <Description>Circuit Assembly-Be Strong!</Description> <Location>An address</Location> </SpecialEvent> </AssignmentRow> </MonthAssignments> <MonthAssignments IncludeHeadings="false" IncludeGap="true"> <AssignmentRow RowType="Odd"> <Date Day="1" DayShort="Thu" DayFull="Thursday" Month="11" MonthShort="Nov" MonthFull="November" Year="2018">Thu, November 01</Date> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> </AssignmentRow> <AssignmentRow RowType="Even"> <Date Day="4" DayShort="Sun" DayFull="Sunday" Month="11" MonthShort="Nov" MonthFull="November" Year="2018">Sun, November 04</Date> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> </AssignmentRow> <AssignmentRow RowType="Odd"> <Date Day="8" DayShort="Thu" DayFull="Thursday" Month="11" MonthShort="Nov" MonthFull="November" Year="2018">Thu, November 08</Date> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> </AssignmentRow> <AssignmentRow RowType="Even"> <Date Day="11" DayShort="Sun" DayFull="Sunday" Month="11" MonthShort="Nov" MonthFull="November" Year="2018">Sun, November 11</Date> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> </AssignmentRow> <AssignmentRow RowType="Odd"> <Date Day="15" DayShort="Thu" DayFull="Thursday" Month="11" MonthShort="Nov" MonthFull="November" Year="2018">Thu, November 15</Date> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> </AssignmentRow> <AssignmentRow RowType="Even"> <Date Day="18" DayShort="Sun" DayFull="Sunday" Month="11" MonthShort="Nov" MonthFull="November" Year="2018">Sun, November 18</Date> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> </AssignmentRow> <AssignmentRow RowType="Odd"> <Date Day="22" DayShort="Thu" DayFull="Thursday" Month="11" MonthShort="Nov" MonthFull="November" Year="2018">Thu, November 22</Date> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> </AssignmentRow> <AssignmentRow RowType="Even"> <Date Day="25" DayShort="Sun" DayFull="Sunday" Month="11" MonthShort="Nov" MonthFull="November" Year="2018">Sun, November 25</Date> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> </AssignmentRow> <AssignmentRow RowType="Odd"> <Date Day="29" DayShort="Thu" DayFull="Thursday" Month="11" MonthShort="Nov" MonthFull="November" Year="2018">Thu, November 29</Date> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> <Name Highlight="false" Conflict="false"></Name> </AssignmentRow> </MonthAssignments> <Note>All assigned brothers should try to arrive at least <b><u>15 minutes</u></b> before the meeting to confirm duties, set up and test the sound and prepare the platform.</Note> </Schedule> </SRRScheduleData>
|
SRRScheduleData
This is the root element and it contains the following attributes:
Version
|
Type: Integer
An integer with a value of 1 or higher.
|
TableWidthPercent
|
Type: Boolean
This is set to true if the Table Width setting is set to Percent.
|
LanguageCode
|
Type: String
This indicates the language of the text on the schedule. Read more.
|
Direction
|
Type: String
This indicates the flow of the text on the schedule. Read more.
|
DateTextCase
|
Type: String
This is the value of the Date Text Case setting. Read more.
|
Columns
This provides all the information about the column headings on the schedule. It contains one or more Heading items with the following attributes:
TextAlign
|
Type: String
Indicates if the column heading to be aligned left, center or right. Read more.
|
Width
|
Type: String
This specifies the width of the column as a percentage.
This attribute is only included if the Table Width setting is set to Percent.
|
DutySlipLabels
This provides the labels for the Duty Assignment Slips:
Title
|
Type: String
This is the title for the duty assignment slip. Read more.
|
Date
|
Type: String
This is the heading for the date column on the duty assignment slip. Read more.
|
Assignments
|
Type: String
This is the heading for the assignments column on the duty assignment slip. Read more.
|
Schedule
This represents a single instance of the schedule, either for the Notice Board or a named publisher. Therefore, there can be multiple Schedule items in the file. It contains the following elements:
ReportTitle
|
Type: String The report title. Read more.
|
MonthAssignments
|
Type: Custom
This encompasses all assignments for a specific month. It has the following attributes:
Type: Boolean
This is the value of the Repeat Column Headings setting. Read more.
Type: Boolean
This is the value of the Separate Months setting. Read more.
Type: Custom
This represents all assignments for a given row on the schedule. Read more.
There can be multiple MonthAssignments items in the file.
|
Note
|
Type: String
This is the note (if any) that is on the schedule. Read more.
|
AssignmentRow
As previously mentioned, this represents all assignments for a given row on the schedule. There can be multiple AssignmentRow items in the file. It contains the following items:
RowType
|
Type: String
Indicates if the row is even or odd. Read more.
|
Date
|
Type: String
Specifies the date for the meeting (or week). The value is formatted using the program settings and in the default template it applies the Date Text Case setting. Read more.
The following attributes are supplied so that you have full customization for how to display the date on the schedule:
Type: Integer
The numeric day of the month.
Type: String
The abbreviation for the day of the week.
Type: String
The day of the week.
Type: Integer
The month of the year.
Type: String
The abbreviation for the month of the year.
Type: String
The month of the year.
Type: Integer
The year expressed as 4 digits.
|
Name
|
Type: String
This is the name of the publisher. It has the following attributes:
Type: Boolean
The value is true if the cell should be highlighted. This is used on personal schedules.
Type: Boolean
The value is true if the cell is indicated as a conflict of assignment in the editor.Read more.
By default no styling is applied to any cells that are marked as a conflict. You would have to customize the cellConflict class to add any look and feel for these cells.
|
SpecialEvent
|
Type: String
Indicates that this cell represents a special event on the schedule. It has the following items:
Type: String
The description of the special event. Read more.
Type: String
The location of the special event. Read more.
|