highsource / highsource/jsonix

Could not marshalled the object

Open
#247 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
369
Forks
85
PR merge metrics
No merged PRs in 30d

Description

Hello,

1. I created INVOICE.js in mappings folder using below command
`java -jar \lib\jsonix-schema-compiler-full-2.3.9.jar -d mappings -p INVOICE https://docs.oasis-open.org/ubl/os-UBL-2.1/xsd/maindoc/UBL-Invoice-2.1.xsd`

2. Then tried to **marshalling** the object to XML and getting below error
`Error: Element [xsd:schema] is not known in this context, could not determine its type.`

Here is the snippet
```
let xmlData = marshaller.marshalDocument({
name: {
localPart: "Invoice"
},
value: {
"cac:InvoicePeriod": {
"cbc:StartDate": "2009-11-01",
"cbc:EndDate": "2009-11-30",
}
}
});
```

Any help will be highly appreciated. Thanks

PS: code [jsonixInvoice ](https://github.com/dishantindept/jsonixInvoice) for reference

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.