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

Label with text value "0" parsed as null from XML object #10

Open
msalihaltun opened this issue Jun 18, 2021 · 0 comments
Open

Label with text value "0" parsed as null from XML object #10

msalihaltun opened this issue Jun 18, 2021 · 0 comments
Labels

Comments

@msalihaltun
Copy link
Contributor

We use libsbgn.js to convert from XML object to sbgn object here. The XML file looks like the following before conversion (from Chrome console):

image.

We convert the XML file to string and then use the libsbgnjs.Sbgn.fromXML() function to convert to sbgn object that has map.glyph.label fields as follows:

image

image

As can be seen, label "1" is parsed correctly but "0" is not.

Here is the original file used (converted to string and passed into the function):
test.xml.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants