Skip to content

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

Description

@msalihaltun

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions