Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Prefix name for Elements #11

Open
1 task
microshine opened this issue Apr 14, 2020 · 0 comments
Open
1 task

Change Prefix name for Elements #11

microshine opened this issue Apr 14, 2020 · 0 comments

Comments

@microshine
Copy link
Contributor

  • Use the same prefix for all children elements

Right now to change prefix we need to update static values or set Prefix for each object

for (const key in xadesjs.xml) {
  const xadesClass = xadesjs.xml[key]
  if (xadesClass.prefix === "xades") {
    xadesClass.prefix = "etsi";
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants