GithubHelp home page GithubHelp logo

confluence-xml-export-converter's Introduction

confluence-xml-export-converter

UTF8 handling

Truth to be told the UTF8 handling works but is not solid. It does not work correctly after the conversion to markdown inside the script "to_wikijs". Therefor the user is warned that the export might contain errors and strange symbols.

Usage

Requirements

Besides having Perl installed the following modules must be installed (package manager or cpanminus):

  • XML::LibXML
  • YAML::XS
  • MIME::Base64
  • MIME::Types
  • HTML::Entities

Converting to YAML

Run the script xml_to_yml.pl inside the unpacked XML export folder. The file entities.xml and the folder attachments must be present. The output goes to the STDIN, redirect it to a file. Example: perl xml_to_yml.pl >export.yml

Then run the next script to create an importable set of files for the application. Expects that the file is named export.yml. This is currently necessary because of UTF8 handling. Example for wikijs: perl towikijs.pl

Intermediate yaml

The script xml_to_yml.pl outputs the space structure contained inside a yaml file. The structure already contains the space tree compared to the flat xml export. Optionaly all attachments from inside the attachments folder are include inside the yaml file base64 encoded. This is enabled using the "-a" flag.

confluence-xml-export-converter's People

Contributors

brickhousewindow avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.