-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added support for ignoring fields from xml document
- Loading branch information
1 parent
b68b60f
commit 812da70
Showing
7 changed files
with
171 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ni:///sha-256;cec19d047cf3b05d02cf719d9c35bc468e911d7b9f5d415ba67a074a104c28d2?ver=CBV2.0 | ||
ni:///sha-256;cec19d047cf3b05d02cf719d9c35bc468e911d7b9f5d415ba67a074a104c28d2?ver=CBV2.0 |
3 changes: 3 additions & 0 deletions
3
tests/examples/epcisXmlDocHavingEventWithIgnoreFields.prehashes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
eventType=ObjectEventeventTime=2015-03-30T08:58:56.591ZeventTimeZoneOffset=+02:00quantityListquantityElementepcClass=https://id.gs1.org/01/04054739999612/10/2015-03-30aquantity=150uom=KGMaction=ADDbizStep=https://ref.gs1.org/cbv/BizStep-commissioningreadPointid=https://id.gs1.org/414/4054738000050{https://ns.example.com/epcis/}testField2=ABC | ||
eventType=ObjectEventeventTime=2015-03-30T08:58:56.591ZeventTimeZoneOffset=+02:00quantityListquantityElementepcClass=https://id.gs1.org/01/04054739999612/10/2015-03-30aquantity=150uom=KGMaction=ADDbizStep=https://ref.gs1.org/cbv/BizStep-commissioningreadPointid=https://id.gs1.org/414/4054738000050{https://ns.example.com/epcis/}testField2=ABC | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<epcis:EPCISDocument xmlns:epcis="urn:epcglobal:epcis:xsd:2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:cbv="https://ref.gs1.org/cbv/" | ||
schemaVersion="2.0" | ||
creationDate="2023-01-11T12:00:00.000+01:00" | ||
xsi:schemaLocation="urn:epcglobal:epcis:xsd:2 EPCglobal-epcis-2_0.xsd" | ||
xmlns:repository-x="https://repository-x.example.com/" | ||
xmlns:example="https://ns.example.com/epcis/"> | ||
<repository-x:ignoreFields> | ||
<example:testField1/> | ||
</repository-x:ignoreFields> | ||
<EPCISBody> | ||
<EventList> | ||
<ObjectEvent> | ||
<eventTime>2015-03-30T10:58:56.591+02:00</eventTime> | ||
<recordTime>2015-03-30T15:38:32.052+02:00</recordTime> | ||
<eventTimeZoneOffset>+02:00</eventTimeZoneOffset> | ||
<epcList/> | ||
<action>ADD</action> | ||
<bizStep>urn:epcglobal:cbv:bizstep:commissioning</bizStep> | ||
<readPoint> | ||
<id>urn:epc:id:sgln:4054738.00005.0</id> | ||
</readPoint> | ||
<extension> | ||
<quantityList> | ||
<quantityElement> | ||
<epcClass>urn:epc:class:lgtin:4054739.099961.2015-03-30a</epcClass> | ||
<quantity>150</quantity> | ||
<uom>KGM</uom> | ||
</quantityElement> | ||
</quantityList> | ||
</extension> | ||
<example:testField1>123</example:testField1> | ||
<example:testField2>ABC</example:testField2> | ||
</ObjectEvent> | ||
<ObjectEvent> | ||
<eventTime>2015-03-30T10:58:56.591+02:00</eventTime> | ||
<recordTime>2015-03-30T15:38:32.052+02:00</recordTime> | ||
<eventTimeZoneOffset>+02:00</eventTimeZoneOffset> | ||
<epcList/> | ||
<action>ADD</action> | ||
<bizStep>urn:epcglobal:cbv:bizstep:commissioning</bizStep> | ||
<readPoint> | ||
<id>urn:epc:id:sgln:4054738.00005.0</id> | ||
</readPoint> | ||
<extension> | ||
<quantityList> | ||
<quantityElement> | ||
<epcClass>urn:epc:class:lgtin:4054739.099961.2015-03-30a</epcClass> | ||
<quantity>150</quantity> | ||
<uom>KGM</uom> | ||
</quantityElement> | ||
</quantityList> | ||
</extension> | ||
<example:testField2>ABC</example:testField2> | ||
</ObjectEvent> | ||
</EventList> | ||
</EPCISBody> | ||
</epcis:EPCISDocument> |
2 changes: 2 additions & 0 deletions
2
tests/examples/epcisXmlQueryDocHavingEventWithIgnoreFields.hashes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ni:///sha-256;cec19d047cf3b05d02cf719d9c35bc468e911d7b9f5d415ba67a074a104c28d2?ver=CBV2.0 | ||
ni:///sha-256;cec19d047cf3b05d02cf719d9c35bc468e911d7b9f5d415ba67a074a104c28d2?ver=CBV2.0 |
3 changes: 3 additions & 0 deletions
3
tests/examples/epcisXmlQueryDocHavingEventWithIgnoreFields.prehashes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
eventType=ObjectEventeventTime=2015-03-30T08:58:56.591ZeventTimeZoneOffset=+02:00quantityListquantityElementepcClass=https://id.gs1.org/01/04054739999612/10/2015-03-30aquantity=150uom=KGMaction=ADDbizStep=https://ref.gs1.org/cbv/BizStep-commissioningreadPointid=https://id.gs1.org/414/4054738000050{https://ns.example.com/epcis/}testField2=ABC | ||
eventType=ObjectEventeventTime=2015-03-30T08:58:56.591ZeventTimeZoneOffset=+02:00quantityListquantityElementepcClass=https://id.gs1.org/01/04054739999612/10/2015-03-30aquantity=150uom=KGMaction=ADDbizStep=https://ref.gs1.org/cbv/BizStep-commissioningreadPointid=https://id.gs1.org/414/4054738000050{https://ns.example.com/epcis/}testField2=ABC | ||
|
60 changes: 60 additions & 0 deletions
60
tests/examples/epcisXmlQueryDocHavingEventWithIgnoreFields.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<epcisq:EPCISQueryDocument xmlns:epcisq="urn:epcglobal:epcis-query:xsd:2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:cbvmda="urn:epcglobal:cbv:mda" | ||
xmlns:sbdh="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" | ||
schemaVersion="2.0" | ||
creationDate="2005-07-11T11:30:47.0Z" | ||
xmlns:repository-x="https://repository-x.example.com/" | ||
xmlns:example="https://ns.example.com/epcis/"> | ||
<repository-x:ignoreFields> | ||
<example:testField1/> | ||
</repository-x:ignoreFields> | ||
<queryName>SimpleEventQuery</queryName> | ||
<resultsBody> | ||
<EventList> | ||
<ObjectEvent> | ||
<eventTime>2015-03-30T10:58:56.591+02:00</eventTime> | ||
<recordTime>2015-03-30T15:38:32.052+02:00</recordTime> | ||
<eventTimeZoneOffset>+02:00</eventTimeZoneOffset> | ||
<epcList/> | ||
<action>ADD</action> | ||
<bizStep>urn:epcglobal:cbv:bizstep:commissioning</bizStep> | ||
<readPoint> | ||
<id>urn:epc:id:sgln:4054738.00005.0</id> | ||
</readPoint> | ||
<extension> | ||
<quantityList> | ||
<quantityElement> | ||
<epcClass>urn:epc:class:lgtin:4054739.099961.2015-03-30a</epcClass> | ||
<quantity>150</quantity> | ||
<uom>KGM</uom> | ||
</quantityElement> | ||
</quantityList> | ||
</extension> | ||
<example:testField1>123</example:testField1> | ||
<example:testField2>ABC</example:testField2> | ||
</ObjectEvent> | ||
<ObjectEvent> | ||
<eventTime>2015-03-30T10:58:56.591+02:00</eventTime> | ||
<recordTime>2015-03-30T15:38:32.052+02:00</recordTime> | ||
<eventTimeZoneOffset>+02:00</eventTimeZoneOffset> | ||
<epcList/> | ||
<action>ADD</action> | ||
<bizStep>urn:epcglobal:cbv:bizstep:commissioning</bizStep> | ||
<readPoint> | ||
<id>urn:epc:id:sgln:4054738.00005.0</id> | ||
</readPoint> | ||
<extension> | ||
<quantityList> | ||
<quantityElement> | ||
<epcClass>urn:epc:class:lgtin:4054739.099961.2015-03-30a</epcClass> | ||
<quantity>150</quantity> | ||
<uom>KGM</uom> | ||
</quantityElement> | ||
</quantityList> | ||
</extension> | ||
<example:testField2>ABC</example:testField2> | ||
</ObjectEvent> | ||
</EventList> | ||
</resultsBody> | ||
</epcisq:EPCISQueryDocument> |