Edit online

Import from HTML Files

Oxygen XML offers supporttwo methods for importing HTML files into an XML document. The first method is to simply copy data from an HTML document and paste it into a document in Author mode, but this is only supported in DITA, DocBook, TEI, JATS, and XHTML documents. Oxygen XML also offers a configurable import wizard that works with any type of XML document.

Smart Paste Method

If you are importing data into DITA, DocBook, TEI, JATS, or XHTML documents, you can open the HTML document in your web browser, copy its content, and paste it into your document in Author mode.

Import Wizard Method

To use the Import wizard to import from HTML files, follow these steps:
  1. Go to File > Import/Convert > HTML File to XHTMLFile > Import/Convert > Oxygen XML > HTML File to XHTML. The Import HTML to XHTML wizard is displayed.
  2. Select a parent folder and file name for the resulting XHTML document.
  3. Enter the URL of the HTML document.
  4. Select the type of the resulting XHTML document:
    • XHTML5
    • XHTML 1.0 Transitional
    • XHTML 1.0 Strict
  5. Click the OKFinish button.

Result: The resulting document is an XHTML file containing a DOCTYPE declaration that references the XHTML DTD definition on the Web. The parsed content of the imported file is transformed to XHTML5, XHTML Transitional, or XHTML Strict depending on the option you chose.