diff --git a/README.md b/README.md index 0e947815b01a0c03d4039177f593fc04a91711e9..fa8fe5b8c2e88e8c0e3e49713ab2f921101978af 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ const doc = DCCDocument.fromXml(xml); // access the properties of the DCC // _attr contains all the attributes of a given element -doc.digitalCalibrationCertificate._attr.schemaVersion // => 3.1.1 +doc.digitalCalibrationCertificate._attr.schemaVersion // => 3.1.2 // _text is used to access the value of the given element doc.digitalCalibrationCertificate.administrativeData.coreData.uniqueIdentifier._text diff --git a/src/DCC.ts b/src/DCC.ts index 4ec1378d9243c6711541ccfd8caeec5fc235ce9a..726792d2b60aebf2694c35228e441aae5624b3c5 100644 --- a/src/DCC.ts +++ b/src/DCC.ts @@ -2,7 +2,7 @@ import * as si from "./DSI"; import { XMLDate, XMLElement, XMLNumber, XMLBoolean, XMLList, INamespaced, ISchemaInformation, IAttributes } from "./BaseTypes"; import { ensureArray } from "./Util"; -const schemaVersion = "3.1.1"; +const schemaVersion = "3.1.2"; const namespace = "dcc"; const namespaceUrl = `https://ptb.de/${namespace}`; const schemaLocation = `${namespaceUrl}/v${schemaVersion}/dcc.xsd`; diff --git a/tests/Resources/example.xml.ts b/tests/Resources/example.xml.ts index ecb64cf607bec72353ec3e48fe26fb57e086e21f..5bacaeff1cac3427e1bf8d2eace3c68f935185e9 100644 --- a/tests/Resources/example.xml.ts +++ b/tests/Resources/example.xml.ts @@ -1,4 +1,4 @@ -const dcc = `<dcc:digitalCalibrationCertificate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dcc="https://ptb.de/dcc" xmlns:si="https://ptb.de/si" xsi:schemaLocation="https://ptb.de/dcc https://ptb.de/dcc/v3.1.1/dcc.xsd" schemaVersion="3.1.1"> +const dcc = `<dcc:digitalCalibrationCertificate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dcc="https://ptb.de/dcc" xmlns:si="https://ptb.de/si" xsi:schemaLocation="https://ptb.de/dcc https://ptb.de/dcc/v3.1.2/dcc.xsd" schemaVersion="3.1.2"> <dcc:administrativeData> <dcc:dccSoftware> <dcc:software>