diff --git a/phive-result/src/main/java/com/helger/phive/result/xml/PhiveXMLHelper.java b/phive-result/src/main/java/com/helger/phive/result/xml/PhiveXMLHelper.java index 921fc7c1..8d6fcd05 100644 --- a/phive-result/src/main/java/com/helger/phive/result/xml/PhiveXMLHelper.java +++ b/phive-result/src/main/java/com/helger/phive/result/xml/PhiveXMLHelper.java @@ -211,15 +211,15 @@ public static ILocation getAsErrorLocation (@Nullable final IMicroElement aObj) * Get the XML representation of an error.
* *
-   * {
-   *   "errorLevel" : string,
-   *   "errorID" : string?,
-   *   "errorFieldName" : string?,
-   *   "errorLocation" : object?,
-   *   "test" : string?,
-   *   "errorText" : string,
-   *   "exception : object?
-   * }
+   * <error>
+   *   <errorLevel>string</errorLevel>?
+   *   <errorID>string</errorID>?
+   *   <errorFieldName>string</errorFieldName>?
+   *   <errorLocation>object</errorLocation>?
+   *   <test>string</test>?
+   *   <errorText>string</errorText>
+   *   <exception>object</exception>?
+   * </error>
    * 
* * @param aErrorLevel @@ -271,15 +271,15 @@ public static IMicroElement getXMLError (@Nonnull final IErrorLevel aErrorLevel, * Get the XML representation of an error.
* *
-   * {
-   *   "errorLevel" : string,
-   *   "errorID" : string?,
-   *   "errorFieldName" : string?,
-   *   "errorLocation" : object?,
-   *   "test" : string?,
-   *   "errorText" : string,
-   *   "exception : object?
-   * }
+   * <error>
+   *   <errorLevel>string</errorLevel>?
+   *   <errorID>string</errorID>?
+   *   <errorFieldName>string</errorFieldName>?
+   *   <errorLocation>object</errorLocation>?
+   *   <test>string</test>?
+   *   <errorText>string</errorText>
+   *   <exception>object</exception>?
+   * </error>
    * 
* * @param aError @@ -388,19 +388,19 @@ public static IError getAsIError (@Nonnull final IMicroElement aObj) * Create the VES details as an XML Object.
* *
-   * {
-   *   "vesid" : string,
-   *   "name" : string,
-   *   "deprecated" : boolean,
-   *   "status" : {
-   *     "lastModification" : dateTime
-   *     "type" : string,
-   *     "validFrom" : string?,
-   *     "validTo" : string?,
-   *     "deprecationReason" : string?
-   *     "replacementVesid" : string?
-   *   }
-   * }
+   * <ves>
+   *   <vesid>string</vesid>
+   *   <name>string</name>
+   *   <deprecated>boolean</deprecated>
+   *   <status>
+   *     <lastModification>dateTime</lastModification>
+   *     <type>string</type>
+   *     <validFrom>string</validFrom>?
+   *     <validTo>string</validTo>?
+   *     <deprecationReason>string</deprecationReason>?
+   *     <replacementVesid>string</replacementVesid>?
+   *   </status>
+   * </ves>
    * 
* * @param aVES @@ -447,20 +447,20 @@ public static IMicroElement getXMLVES (@Nonnull final IValidationExecutorSet *
* *
-   * {
-   *   "success" : boolean,
-   *   "interrupted" : boolean,
-   *   "mostSevereErrorLevel" : string,
-   *   "results" : array {
-   *     "success" : string,  // as defined by {@link PhiveResultHelper#getTriStateValue(ETriState)}
-   *     "artifactType" : string,
-   *     "artifactPath" : string,
-   *     "items" : array {
-   *       error structure as in {@link #getXMLError(IError, Locale, String)}
-   *     }
-   *   },
-   *   "durationMS" : number
-   * }
+   * <item>
+   *   <success>boolean</success>
+   *   <interrupted>boolean</interrupted>
+   *   <mostSevereErrorLevel>string</mostSevereErrorLevel>
+   *   <result>
+   *     <success>string</success>  // as defined by {@link PhiveResultHelper#getTriStateValue(ETriState)}
+   *     <artifactType>string</artifactType>
+   *     <artifactPath>string</artifactPath>
+   *     <item>
+   *       // error structure as in {@link #getXMLError(IError, Locale, String)}
+   *     </item>+
+   *   </result>+
+   *   <durationMS>number</durationMS>
+   * </item>
    * 
* * @param aResponse @@ -498,22 +498,24 @@ public static void applyGlobalError (@Nonnull final IMicroElement aResponse, * {@link #applyGlobalError(IMicroElement, String, long)}.
* *
-    * {
-    *   "ves" : object as defined by {@link #getXMLVES(IValidationExecutorSet,String)}
-    *   "success" : boolean,
-    *   "interrupted" : boolean,
-    *   "mostSevereErrorLevel" : string,
-    *   "results" : array {
-    *     "success" : string,  // as defined by {@link PhiveResultHelper#getTriStateValue(ETriState)}
-    *     "artifactType" : string,
-    *     "artifactPathType" : string?,
-    *     "artifactPath" : string,
-    *     "items" : array {
-    *       error structure as in {@link #getXMLError(IError, Locale,String)}
-    *     }
-    *   },
-    *   "durationMS" : number
-    * }
+   * <resultList>
+   *   <ves>
+   *     // object as defined by {@link #getXMLVES(IValidationExecutorSet,String)}
+   *   </ves>
+   *   <success>boolean</success>
+   *   <interrupted>boolean</interrupted>
+   *   <mostSevereErrorLevel>string</mostSevereErrorLevel>
+   *   <result>
+   *     <success>string</success>  // as defined by {@link PhiveResultHelper#getTriStateValue(ETriState)}
+   *     <artifactType>string</artifactType>
+   *     <artifactPathType>string</artifactPathType>
+   *     <artifactPath>string</artifactPath>
+   *     <item>
+   *       // error structure as in {@link #getXMLError(IError, Locale, String)}
+   *     </item>+
+   *   </result>+
+   *   <durationMS>number</durationMS>
+   * </resultList>
    * 
* * @param aResponse