example_xml.html 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <HTML>
  2. <head profile="http://dublincore.org/documents/dcq-html/">
  3. <title></title>
  4. <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
  5. <meta content="" name="description" />
  6. <meta content="" name="keywords" />
  7. <link href="http://purl.org/dc/elements/1.1/" rel="schema.DC" />
  8. <meta content="" name="DC.title" />
  9. <meta content="" name="DC.subject" />
  10. <meta content="" name="DC.description" />
  11. <meta content="" name="DC.creator" />
  12. <meta content="" name="DC.date" />
  13. <meta content="" name="DC.language" />
  14. <style media="all" type="text/css">
  15. body {font-family:'Times New Roman',serif;font-size:16.0px}
  16. p.PreformattedText {margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border:none;padding:0;font-family:'Times New Roman';font-size:13.333334px}
  17. </style>
  18. </head>
  19. <BODY>
  20. <h1>XML example for certificate importation</h1>
  21. This is an example file and this data can't be imported on your platform. The user id must correspond to users existing on your platform.<br />
  22. The date and offical_code fiels aren't mandatory and can be omitted without any error. If you want to overwrite the scores, you must choose the "Overwrite score" option.<br />
  23. <h2>Complete XML score importation file</h2>
  24. <p class="PreformattedText">&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;</p>
  25. <p class="PreformattedText"> &lt;XMLResults&gt;</p>
  26. <p class="PreformattedText">&lt;Result&gt;</p>
  27. <p class="PreformattedText"> &lt;username&gt;bgate&lt;/username&gt;</p>
  28. <p class="PreformattedText"> &lt;official_code&gt;bgate&lt;/official_code&gt;</p>
  29. <p class="PreformattedText"> &lt;lastname&gt;Gate&lt;/lastname&gt;</p>
  30. <p class="PreformattedText"> &lt;firstname&gt;Bill&lt;/firstname&gt;</p>
  31. <p class="PreformattedText"> &lt;score&gt;2&lt;/score&gt;</p>
  32. <p class="PreformattedText"> &lt;date&gt;2009-2-25 12:28&lt;/date&gt;</p>
  33. <p class="PreformattedText"> &lt;/Result&gt;</p>
  34. <p class="PreformattedText">&lt;Result&gt;</p>
  35. <p class="PreformattedText"> &lt;username&gt;ltorvald&lt;/username&gt;</p>
  36. <p class="PreformattedText"> &lt;official_code&gt;ltorvald&lt;/official_code&gt;</p>
  37. <p class="PreformattedText"> &lt;lastname&gt;Torvald&lt;/lastname&gt;</p>
  38. <p class="PreformattedText"> &lt;firstname&gt;Linus&lt;/firstname&gt;</p>
  39. <p class="PreformattedText"> &lt;score&gt;10&lt;/score&gt;</p>
  40. <p class="PreformattedText"> &lt;date&gt;2009-2-25 12:28&lt;/date&gt;</p>
  41. <p class="PreformattedText"> &lt;/Result&gt;</p>
  42. <p class="PreformattedText">&lt;Result&gt;</p>
  43. <p class="PreformattedText"> &lt;username&gt;jsmith&lt;/username&gt;</p>
  44. <p class="PreformattedText"> &lt;official_code&gt;&lt;/official_code&gt;</p>
  45. <p class="PreformattedText"> &lt;lastname&gt;Smith&lt;/lastname&gt;</p>
  46. <p class="PreformattedText"> &lt;firstname&gt;John&lt;/firstname&gt;</p>
  47. <p class="PreformattedText"> &lt;score&gt;3&lt;/score&gt;</p>
  48. <p class="PreformattedText"> &lt;date&gt;&lt;/date&gt;</p>
  49. <p class="PreformattedText"> &lt;/Result&gt;</p>
  50. <p class="PreformattedText">&lt;/XMLResults&gt;</p>
  51. <h2>Minimal XML score importation file</h2>
  52. This is possible to use a minimal file if you choose the "Ingnore error option" :
  53. <br /><br />
  54. <p class="PreformattedText">&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;</p>
  55. <p class="PreformattedText"> &lt;XMLResults&gt;</p>
  56. <p class="PreformattedText">&lt;Result&gt;</p>
  57. <p class="PreformattedText"> &lt;username&gt;bgate&lt;/username&gt;</p>
  58. <p class="PreformattedText"> &lt;score&gt;2&lt;/score&gt;</p>
  59. <p class="PreformattedText"> &lt;/Result&gt;</p>
  60. <p class="PreformattedText">&lt;Result&gt;</p>
  61. <p class="PreformattedText"> &lt;username&gt;ltorvald&lt;/username&gt;</p>
  62. <p class="PreformattedText"> &lt;score&gt;10&lt;/score&gt;</p>
  63. <p class="PreformattedText"> &lt;/Result&gt;</p>
  64. <p class="PreformattedText">&lt;Result&gt;</p>
  65. <p class="PreformattedText"> &lt;username&gt;jsmith&lt;/username&gt;</p>
  66. <p class="PreformattedText"> &lt;score&gt;3&lt;/score&gt;</p>
  67. <p class="PreformattedText"> &lt;/Result&gt;</p>
  68. <p class="PreformattedText">&lt;/XMLResults&gt;</p>
  69. <h2>Complete XML presence importation file</h2>
  70. For the presence this is the same file except the score fied which is "0" for absent and "1" for present :
  71. <br /><br />
  72. <p class="PreformattedText">&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;</p>
  73. <p class="PreformattedText"> &lt;XMLResults&gt;</p>
  74. <p class="PreformattedText">&lt;Result&gt;</p>
  75. <p class="PreformattedText"> &lt;username&gt;bgate&lt;/username&gt;</p>
  76. <p class="PreformattedText"> &lt;official_code&gt;bgate&lt;/official_code&gt;</p>
  77. <p class="PreformattedText"> &lt;lastname&gt;Gate&lt;/lastname&gt;</p>
  78. <p class="PreformattedText"> &lt;firstname&gt;Bill&lt;/firstname&gt;</p>
  79. <p class="PreformattedText"> &lt;score&gt;0&lt;/score&gt;</p>
  80. <p class="PreformattedText"> &lt;date&gt;2009-2-25 12:28&lt;/date&gt;</p>
  81. <p class="PreformattedText"> &lt;/Result&gt;</p>
  82. <p class="PreformattedText">&lt;Result&gt;</p>
  83. <p class="PreformattedText"> &lt;username&gt;ltorvald&lt;/username&gt;</p>
  84. <p class="PreformattedText"> &lt;official_code&gt;ltorvald&lt;/official_code&gt;</p>
  85. <p class="PreformattedText"> &lt;lastname&gt;Torvald&lt;/lastname&gt;</p>
  86. <p class="PreformattedText"> &lt;firstname&gt;Linus&lt;/firstname&gt;</p>
  87. <p class="PreformattedText"> &lt;score&gt;1&lt;/score&gt;</p>
  88. <p class="PreformattedText"> &lt;date&gt;2009-2-25 12:28&lt;/date&gt;</p>
  89. <p class="PreformattedText"> &lt;/Result&gt;</p>
  90. <p class="PreformattedText">&lt;Result&gt;</p>
  91. <p class="PreformattedText"> &lt;username&gt;jsmith&lt;/username&gt;</p>
  92. <p class="PreformattedText"> &lt;official_code&gt;&lt;/official_code&gt;</p>
  93. <p class="PreformattedText"> &lt;lastname&gt;Smith&lt;/lastname&gt;</p>
  94. <p class="PreformattedText"> &lt;firstname&gt;John&lt;/firstname&gt;</p>
  95. <p class="PreformattedText"> &lt;score&gt;0&lt;/score&gt;</p>
  96. <p class="PreformattedText"> &lt;date&gt;&lt;/date&gt;</p>
  97. <p class="PreformattedText"> &lt;/Result&gt;</p>
  98. <p class="PreformattedText">&lt;/XMLResults&gt;</p>
  99. <br /><br />
  100. You could also use a minimal XML file for the presence.
  101. </BODY>