Uploaded image for project: 'Hyrax Data Server'
  1. HYRAX-723

The DMR++ parser doesn't see a newline (cr?) as whitepspace.

    Details

    • Type: Bug
    • Status: Done (View workflow)
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: DMR++-Handler, libdap
    • Labels:
      None

      Description

      The DmrppParserSax2 parser fails to see cr/lf/newline as a white space.

      This fails:

      <Dataset 
          xmlns="http://xml.opendap.org/ns/DAP/4.0#"
      xmlns:dmrpp="http://xml.opendap.org/dap/dmrpp/1.0.0#"
          dapVersion="4.0" 
          dmrVersion="1.0" 
          name="coads_climatology"
          dmrpp:href="data/dmrpp/coads_climatology.bin">
              
          <Dimension name="COADSX" size="180"/>
          <Dimension name="COADSY" size="90"/>
          <Dimension name="TIME" size="12"/>
      

      This works: (Note: The single, additional, space at the beginning of the line beginning with xmlns:dmrpp):

      <Dataset 
          xmlns="http://xml.opendap.org/ns/DAP/4.0#"
       xmlns:dmrpp="http://xml.opendap.org/dap/dmrpp/1.0.0#"
          dapVersion="4.0" 
          dmrVersion="1.0" 
          name="coads_climatology"
          dmrpp:href="data/dmrpp/coads_climatology.bin">
              
          <Dimension name="COADSX" size="180"/>
          <Dimension name="COADSY" size="90"/>
          <Dimension name="TIME" size="12"/>
      

      And that's probably a bug in the DMR parser too.

        Attachments

          Activity

            People

            • Assignee:
              ndp Nathan Potter
              Reporter:
              ndp Nathan Potter
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: