-
Notifications
You must be signed in to change notification settings - Fork 607
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
Data missing in the result (and other problems) #260
Comments
Hi, have you already solved this issue? Since I use the same API and have same problems. |
No, I switched to marc4js, which was able to parse the data correctly. Edit: Important to note: I was parsing bibliographic data, which was available in many different formats. The one I tried and failed to parse above was Dublin Core. Not only did I switch to marc4js, I also changed my requests to request data in MARCXML format. |
I am very confused, since there isn't really a way that xml2js would invent new elements. |
Well, I share your confusion, which is why I raised this issue in the first place. |
Can you post some minimal code to reproduce? |
I'm gonna pass that question on to @kaltri-n since they seem to be currently using (or at least trying to use) this library. The code with which I initially stumbled across this issue is long gone. |
Hi guys, |
So I'm getting this data from an api, but when I parse it with xml2js fields are added, renamed and missing.
Input XML:
The outputted object is unexpectedly huge:
Not only are there new elements which aren't present in the original XML like
rdau:P60493
, but some likedc:creator
are missing and replaced withdcterms:creator
- a link to a resource. Is this correct behavior? Is there an option to parse the XML 'as-is', ignoring the namespaces (or whatever is causing this)?The text was updated successfully, but these errors were encountered: