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

XML file prints onto one line #13

Open
AlanReviews opened this issue Oct 1, 2020 · 2 comments
Open

XML file prints onto one line #13

AlanReviews opened this issue Oct 1, 2020 · 2 comments

Comments

@AlanReviews
Copy link

For MDCS Version 2.11.0, the XML file has the XML code in one line. For example,

<root  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ><titleInfo>Hello world</titleInfo></root>

Is it possible to have MDCS print code inmany lines? For example,

<root  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<titleInfo>Hello world</titleInfo>
</root>
@Guillaume-sousa
Copy link
Contributor

The XSD string might be stored inline, but you can use the pretty_print option from LXML to display it on multiple lines. Could you tell me where in the MDCS this inline printing happens?

@AlanReviews
Copy link
Author

AlanReviews commented Oct 2, 2020

Here are the steps to recreate this issue:

  1. Go to Data Curation
  2. Select a template and fill out the data in the data entry page
  3. In the data entry page, download the XML file with the download button.
    downloadButton
  4. Download the file.
  5. Open the file with a text editor
    When I followed these steps, I managed to get this resulting XML file:
<mods  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ><titleInfo>Hello world</titleInfo></mods>

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

No branches or pull requests

2 participants