highsource / highsource/jsonix

throw new Error("Parser must be on START_ELEMENT to read next element.");

Open
#160 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

In NODE v4.4.0 operation, the above error is thrown in the example due to incorrect XML node parsing. Using

> unmarshaller.unmarshalFile('purchaseOrder.xml',...

instead of

> unmarshaller.unmarshalURL('purchaseOrder.xml',...

Corrects the problem. This issue doesn't occur in the browser version using jasonix-all. You might want to include this caveat in your example code. I spent hours tracking it down.

Thanks for this wonderful tool. Very useful.

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.