// This file is part of fast-xml, copyright (c) 2015 BusFaster Ltd. // Released under the MIT license, see LICENSE. import {Cache} from 'cget'; import {Namespace} from './xsd/Namespace'; import {Loader} from './xsd/Loader'; import {ExporterTS} from './xsd/ExporterTS' Cache.patchRequest(); Namespace.register('http://www.w3.org/XML/1998/namespace', 'http://www.w3.org/2001/xml.xsd', 'xml'); var loader = new Loader({ forceHost: '127.0.0.1', forcePort: 12345 }); loader.import(process.argv[2]).then((namespace: Namespace) => { new ExporterTS().export(namespace); });