8000 Creating EML elements with XML attributes · Issue #338 · ropensci/EML · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Creating EML elements with XML attributes #338
Open
@kzollove

Description

@kzollove

The ezEML web app for creating EML adds an additional metadata tag to every EML document that describes the editor used to create it:

<additionalMetadata>
    <metadata>
      <emlEditor app="ezEML" release="2022.04.13">
      </emlEditor>
    </metadata>
  </additionalMetadata>

We're trying to recreate this in EMLassemblyline using the EML/emld R package framework. We are able to create app and release as child elements of emlEditor, but not as attributes:

IN:

EML::eml$additionalMetadata(
      metadata = list(emlEditor = list(
        "app" = "EMLassemblyline",
        "release" = "2022.04.13")))

OUT:

<additionalMetadata>
    <metadata>
      <emlEditor>
		<app>EMLassemblyline</app>
		<release>2022.04.13</release>
      </emlEditor>
    </metadata>
  </additionalMetadata>

Is it possible to specify XML attributes within the EML/emld framework (we've tried many different ways?

If not, could this be implemented? Possibly to work like:

IN:

EML::eml$additionalMetadata(
      metadata = list(emlEditor = list(
        "@app" = "EMLassemblyline",
        "@release" = "2022.04.13")))

OUT:

<additionalMetadata>
    <metadata>
      <emlEditor app="EMLassemblyline" release="2022.04.13">
      </emlEditor>
    </metadata>
  </additionalMetadata>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0