Coder Social home page Coder Social logo

`xs:ID` type of `id` attribute of `RunType` makes many mzml files starting with digits as file or sample name invalid. about mzml HOT 2 CLOSED

hechth avatar hechth commented on August 22, 2024
`xs:ID` type of `id` attribute of `RunType` makes many mzml files starting with digits as file or sample name invalid.

from mzml.

Comments (2)

maximskorik avatar maximskorik commented on August 22, 2024 1

Also, the main purpose of xs:ID type is to ensure a unique identifier for every XML element of that type. However, since the maxOccurs attr is not defined for the RunType, there can be only 1 run element per mzML, making the unique identifier unnecessary.

RunType definition in mzML1.1.0.xsd (where the maxOccurs is to be specified):

<xs:sequence>
  ...
  <xs:element name="run" type="dx:RunType" />
</xs:sequence>

from https://www.w3.org/TR/xmlschema-0/:
The default value for both the minOccurs and the maxOccurs attributes is 1.

Another reason why xs:ID might be needed is to have a target for IDREF or IDREFS attributes. However, I couldn't find any element that targets the ID of the run.

Thus, it appears that xs:ID may be safely replaced with xs:string. Note that switching the type to string will require adding a regexp to ensure the id doesn't contain any whitespaces.

from mzml.

edeutsch avatar edeutsch commented on August 22, 2024

Closing since addressed in PR #9

from mzml.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.