Icontem

File: example.html

Recommend this page to a friend!
  Classes of Vallo Reima  >  JS Merge XML  >  example.html  >  Download  
File: example.html
Role: Example script
Content type: text/plain
Description: Sample output
Class: JS Merge XML
Merge XML documents from strings or DOM objects
Author: By
Last change:
Date: 5 years ago
Size: 1,198 bytes
 

Contents

Class file image Download
<!--
/**
 * JS MergeXML usage sample
 *
 * @package     MergeXML
 * @author      Vallo Reima
 * @copyright   (C)2014
 */
-->
<!DOCTYPE html>
<html>
  <head>
    <title>JS MergeXML usage sample</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <style type="text/css">
      button, p {
        font-weight: bold;
      }
      span {
        font-weight: normal;
      }
      div {
        font-family: monospace;
        width: 600px;
        height: 600px;
        border: 1px solid grey;
        overflow: auto;
        padding: 5px;
      }
    </style>
    <script src="mergexml.js" type="text/javascript"></script>
    <script src="example.js" type="text/javascript"></script>
    <script type="text/javascript">
      window.onload = Example;
    </script>
  </head>
  <body>
    <h3>JS MergeXML class to merge multiple XML sources</h3>
    <label for="files">Multi-select:</label> 
    <input type="file" id="files" name="files[]" multiple>
    <button type="button" id="merge">Merge XMLs</button>
    <p>Result: <span id="result"></span></p>
    <div id="output"></div>
  </body>
</html>