Skip to content

Commit

Permalink
Add packageId to the list of identifiers to be checked.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbjones committed Dec 4, 2018
1 parent d6c9464 commit 7a0405f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/org/ecoinformatics/eml/EMLValidator.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ public boolean validate() {

// TODO: All EML documents MUST have the 'eml' module as the root

// All `id` attributes within the document MUST be unique
// All `id` attributes and `packageId` within the document MUST be unique
Vector<String> packageId = getXPathValues("//*/@packageId");
Vector<String> ids = getXPathValues("//*[@id]/@id");
ids.addAll(packageId);
HashMap idmap = new HashMap();
for (String s : ids) {
//System.out.println(s);
Expand Down

0 comments on commit 7a0405f

Please sign in to comment.