There are three modes of importing item data from an XML format.
The XML data to be imported must adhere to the Document Type Definition (DTD) detailed below. This is supplied with ExtraView, in the
WEB-INF/data/xml_dtd directory of your installation, and can be directly referenced from your XML import file or data stream. The file name supplied is extraview_item.dtd.
<?xml version="1.0" encoding="UTF-8" ?> <!ELEMENT locale (EMPTY) > <!ELEMENT item_list (item*) > <!ELEMENT item (short_descr , severity_level , priority , status , product_name , date_created , <!ELEMENT item_udf (title_specifier?, name_specifier?, CDATA*)> <!ELEMENT item_release (title_specifier?, name_specifier?, <!ELEMENT item_module (title_specifier?, name_specifier?, assigned_to ,status ,timestamp , <!ELEMENT title_specifier (CDATA)> <!ELEMENT short_descr (CDATA) > <!ELEMENT item_attachment (CDATA)> |
Note that all data related to items, including repeating records, UDF’s, and attachments are described with the DTD and can all be imported by ExtraView.
A portion of a sample XML file is shown below, with two issues to be imported. This references the above DTD. Note that the attachment within the example import file is shortened, for brevity.
The following points should be noted about the import of items:
Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] |
[#x10000-#x10FFFF]
<?xml version="1.0" encoding="UTF-8"?> |