From 73920694b1fe3ab66d079cd738649121459cfcc5 Mon Sep 17 00:00:00 2001 From: Frank Schnicke <77283144+FrankSchnicke@users.noreply.github.com> Date: Wed, 24 Jan 2024 08:29:18 +0100 Subject: [PATCH] Update AASXSerializer.java --- .../digitaltwin/aas4j/v3/dataformat/aasx/AASXSerializer.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dataformat-aasx/src/main/java/org/eclipse/digitaltwin/aas4j/v3/dataformat/aasx/AASXSerializer.java b/dataformat-aasx/src/main/java/org/eclipse/digitaltwin/aas4j/v3/dataformat/aasx/AASXSerializer.java index f17f5b54f..b11052e80 100644 --- a/dataformat-aasx/src/main/java/org/eclipse/digitaltwin/aas4j/v3/dataformat/aasx/AASXSerializer.java +++ b/dataformat-aasx/src/main/java/org/eclipse/digitaltwin/aas4j/v3/dataformat/aasx/AASXSerializer.java @@ -174,7 +174,8 @@ private void saveAASX(OutputStream os, OPCPackage rootPackage) throws IOExceptio * @return UUID */ private String createUniqueID() { - return UUID.randomUUID().toString(); + // The unique id has to start with a letter (cf. xs:ID). UUIDs do this only sometimes. + return "A" + UUID.randomUUID().toString(); } /** @@ -285,4 +286,4 @@ private String preparePath(String path) { return path; } -} \ No newline at end of file +}