Format XML for Journal Publishing Without Code

To format an XML file for journal review, work on a copy, indent nested elements consistently, and compare the result with the source. An XML formatter makes the tags easier to scan. For a JATS article, also check the document structure against the requirements of your publishing destination.

JATSeditor.com, from OpenJournalTheme, gives journal teams a visual way to do that work. You can start with an XML file, a Word manuscript, or your metadata in Open Journal Systems (OJS). Then you can export publication-ready JATS XML, PDF, and DOCX from one workspace.

How to format XML with an XML formatter

XML formatting adds line breaks and indentation so you can see how elements fit inside one another. For example, a file may put the article, front matter, and body tags on one long line. To format XML for review, put those tags on separate lines and indent the sections inside the article. That makes it easier to find the part you need.

Work on a copy first

  • Save the source file. First, make a copy so you can compare the two files after the change.
  • Choose a consistent indent. For example, two spaces per level make deep sections easier to scan.
  • Preview the result. Next, check that the formatter keeps the article text and tags intact. Save the result under a new name.
  • Check spaces inside paragraphs. For instance, a space next to an italic term can affect how the text reads.

Take care around paragraphs that mix text with inline tags. A new line inside one of those paragraphs can add a space that readers see. Also check accented names and math symbols after you save. If the file uses UTF-8, keep that encoding when you save the copy.

JATS XML before and after formatting

This example shows a single JATS section. With two-space indentation, you can see that the title and paragraph both belong to the <sec> element.

Before formatting

<sec id="s1"><title>Methods</title><p>We tested <italic>Sample A</italic> twice.</p></sec>

After formatting

<sec id="s1">
  <title>Methods</title>
  <p>We tested <italic>Sample A</italic> twice.</p>
</sec>

Compare both versions. The section ID, tag order, and paragraph text should match. Keep the spaces around <italic>Sample A</italic> intact, then validate the full JATS file before export.

Format XML for JATS, then check the structure

A file can look neat and still fail a publishing check. Start by checking whether the file is well-formed. That means it follows basic XML rules, such as matching opening and closing tags. Next, check whether it meets the rules of the JATS tag set you plan to use.

JATS stands for Journal Article Tag Suite. It gives each part of an article a defined role, from the author list to the last reference. For example, a title can look right in plain text yet sit in the wrong part of the file. Indenting the file will leave that error in place.

Know what your validator checks

A document type definition (DTD) sets rules for which elements the file can use and where they belong. In addition, JATS4R offers tagging recommendations that help other systems reuse the content. Run JATSeditor’s validation and content checks before you export. If they flag an error, fix it and run the checks again.

For example, the National Library of Medicine sets tagging rules for PubMed Central (PMC). Before submitting a PMC package, check it with the official PMC file validation tools. Fix errors and review any warnings before you send the package.

Format XML in the JATSeditor workspace

In the JATSeditor workspace, you can review and edit the article visually. Start with the source your team already has. For a revised article, start with its existing XML. For a new article, use the accepted manuscript or bring the record over from OJS.

Pick the right import route

  • Existing JATS file. Choose Import XML in the workspace. If the article has images, put the XML and image files in a ZIP archive before you upload it.
  • Word manuscript. Import the DOCX directly into the editor. Then check that headings, tables, and captions appear in the right places.
  • OJS record. Set up the OJT Control Panel and enable the JATS Editor plugin. Then sync journal and article metadata in one click. For example, the sync can bring over the DOI and author ORCID iDs.

After the OJS sync, check the author list and affiliations. Add any missing Scopus Author IDs and institutional ROR IDs in the editor. In particular, make sure each identifier belongs to the right person or institution.

If you prepare JATS XML for several journals, give each title its own workspace. Invite staff to share the work and agree who will sign off before export.

Review your tags before XML export

Review the article content before you send it to a reader or an index. JATSeditor uses AI to suggest tags for article details and references. For example, you can paste a bibliography and turn it into structured JATS reference tags. Then compare the author names, dates, and DOIs with the source.

The editor also lets you write equations in LaTeX. In addition, you can add images or embed YouTube videos in the abstract or main text. Check that the receiving platform allows the media where you place it. Finally, preview the equations and test links to figures and tables.

Match each export to its destination

  • PMC and EBSCO.
    Choose the export settings for the service you plan to use. For example, choose the relevant file naming option for your package.
  • OJS.
    Use the web publishing export and add the XML as an article galley. Then preview it with the free bundled BetterJATS Viewer.
  • PDF and DOCX.
    Export both from the same project when your team needs a proof and an editable copy.

BetterJATS Viewer adds an interactive table of contents and linked author and institution IDs. In addition, OpenJournalTheme reports faster rendering than eLife Lens in its own test. Check the galley on a phone before you publish. Keep the project and include the version in each export filename so your team can trace corrections.

Build a workflow to format XML for each issue

Use a short checklist for each issue to keep the review consistent. First, record which source file you used and where you plan to send the export. Then have a second editor check the author order, figure links, and any changes to the references.

Keep your deposit checks separate from journal indexing. For example, DOAJ accepts DOAJ Native XML or Crossref XML for article metadata uploads. Scopus has its own journal review process. Check the rules for each service before sending any files.

Start with one article

Self-service quotas start at $5 USD per document. In addition, you can revise the same JATS file as often as you need without using another quota. OpenJournalTheme estimates savings of up to 99% against outside conversion fees as high as $1,000 per file.

If your team needs help preparing JATS XML, choose the Implement by Our Team option. Otherwise, pick one article with references, a figure, and a table. Then use it to test the import, review, and export steps before you move on to a full issue.

Start a Free Trial and use the two included XML export credits to test your workflow. If your next issue is ready for production, buy JATS XML document quotas.

Scroll to Top