main.js 4.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. "use strict";
  2. /**
  3. * Copyright (C) 2016-2019 Michael Kourlas
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. var __importDefault = (this && this.__importDefault) || function (mod) {
  18. return (mod && mod.__esModule) ? mod : { "default": mod };
  19. };
  20. Object.defineProperty(exports, "__esModule", { value: true });
  21. exports.document = exports.XmlProcInst = exports.XmlEntityRef = exports.XmlElement = exports.XmlDtdParamEntityRef = exports.XmlDtdNotation = exports.XmlDtdEntity = exports.XmlDtdElement = exports.XmlDtdAttlist = exports.XmlDtd = exports.XmlDocument = exports.XmlDecl = exports.XmlComment = exports.XmlCharRef = exports.XmlCharData = exports.XmlCdata = exports.XmlAttributeText = exports.XmlAttribute = void 0;
  22. var XmlDocument_1 = __importDefault(require("./nodes/XmlDocument"));
  23. var XmlAttribute_1 = require("./nodes/XmlAttribute");
  24. Object.defineProperty(exports, "XmlAttribute", { enumerable: true, get: function () { return __importDefault(XmlAttribute_1).default; } });
  25. var XmlAttributeText_1 = require("./nodes/XmlAttributeText");
  26. Object.defineProperty(exports, "XmlAttributeText", { enumerable: true, get: function () { return __importDefault(XmlAttributeText_1).default; } });
  27. var XmlCdata_1 = require("./nodes/XmlCdata");
  28. Object.defineProperty(exports, "XmlCdata", { enumerable: true, get: function () { return __importDefault(XmlCdata_1).default; } });
  29. var XmlCharData_1 = require("./nodes/XmlCharData");
  30. Object.defineProperty(exports, "XmlCharData", { enumerable: true, get: function () { return __importDefault(XmlCharData_1).default; } });
  31. var XmlCharRef_1 = require("./nodes/XmlCharRef");
  32. Object.defineProperty(exports, "XmlCharRef", { enumerable: true, get: function () { return __importDefault(XmlCharRef_1).default; } });
  33. var XmlComment_1 = require("./nodes/XmlComment");
  34. Object.defineProperty(exports, "XmlComment", { enumerable: true, get: function () { return __importDefault(XmlComment_1).default; } });
  35. var XmlDecl_1 = require("./nodes/XmlDecl");
  36. Object.defineProperty(exports, "XmlDecl", { enumerable: true, get: function () { return __importDefault(XmlDecl_1).default; } });
  37. var XmlDocument_2 = require("./nodes/XmlDocument");
  38. Object.defineProperty(exports, "XmlDocument", { enumerable: true, get: function () { return __importDefault(XmlDocument_2).default; } });
  39. var XmlDtd_1 = require("./nodes/XmlDtd");
  40. Object.defineProperty(exports, "XmlDtd", { enumerable: true, get: function () { return __importDefault(XmlDtd_1).default; } });
  41. var XmlDtdAttlist_1 = require("./nodes/XmlDtdAttlist");
  42. Object.defineProperty(exports, "XmlDtdAttlist", { enumerable: true, get: function () { return __importDefault(XmlDtdAttlist_1).default; } });
  43. var XmlDtdElement_1 = require("./nodes/XmlDtdElement");
  44. Object.defineProperty(exports, "XmlDtdElement", { enumerable: true, get: function () { return __importDefault(XmlDtdElement_1).default; } });
  45. var XmlDtdEntity_1 = require("./nodes/XmlDtdEntity");
  46. Object.defineProperty(exports, "XmlDtdEntity", { enumerable: true, get: function () { return __importDefault(XmlDtdEntity_1).default; } });
  47. var XmlDtdNotation_1 = require("./nodes/XmlDtdNotation");
  48. Object.defineProperty(exports, "XmlDtdNotation", { enumerable: true, get: function () { return __importDefault(XmlDtdNotation_1).default; } });
  49. var XmlDtdParamEntityRef_1 = require("./nodes/XmlDtdParamEntityRef");
  50. Object.defineProperty(exports, "XmlDtdParamEntityRef", { enumerable: true, get: function () { return __importDefault(XmlDtdParamEntityRef_1).default; } });
  51. var XmlElement_1 = require("./nodes/XmlElement");
  52. Object.defineProperty(exports, "XmlElement", { enumerable: true, get: function () { return __importDefault(XmlElement_1).default; } });
  53. var XmlEntityRef_1 = require("./nodes/XmlEntityRef");
  54. Object.defineProperty(exports, "XmlEntityRef", { enumerable: true, get: function () { return __importDefault(XmlEntityRef_1).default; } });
  55. var XmlProcInst_1 = require("./nodes/XmlProcInst");
  56. Object.defineProperty(exports, "XmlProcInst", { enumerable: true, get: function () { return __importDefault(XmlProcInst_1).default; } });
  57. /**
  58. * Returns a new XML document with the specified options.
  59. */
  60. function document(options) {
  61. if (options === void 0) { options = {}; }
  62. return new XmlDocument_1.default(options);
  63. }
  64. exports.document = document;