Skip to content
This repository was archived by the owner on Nov 25, 2018. It is now read-only.
This repository was archived by the owner on Nov 25, 2018. It is now read-only.

XML Parsing Assumes Static Location & Name #3

Open

Description

@sco1

The current fopen call for parsing the XML file assumes a consistent name & location:

~\matlab\document.xml

Though this is consistent across tested *.mlapp examples this is not a robust approach and also does not account for the potential for multiple XML files in the published app.

Activity

  1. self-assigned this
    on Mar 30, 2016
  2. sco1 commented on Mar 30, 2016

    @sco1
    MemberAuthor

    The [Content_Types].xml file located in the root of the *.mlapp contains a reference to the MATLAB code published with the app:

    <Default ContentType="application/vnd.mathworks.matlab.code.document+xml;plaincode=true" Extension="xml"/>
    

    This can be parsed to robustly obtain the filename(s) of the MATLAB code utilized by the app, which can be fed into a searching function to obtain the filepath(s).

  3. sco1 commented on May 4, 2016

    @sco1
    MemberAuthor

    Mitigated for MATLAB versions newer than R2014b, see #8 and f986a72, which eliminates the intermediate *.zip unpacking step.

  4. removed their assignment
    on Apr 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions