UNPKG

@tripsuite/cxml

Version:

Advanced schema-aware streaming XML parser

20 lines (19 loc) 612 B
// This file is part of cxml, copyright (c) 2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. "use strict"; var NamespaceBase = (function () { function NamespaceBase(name, id, context) { this.name = name; this.id = id; this.context = context; } NamespaceBase.prototype.initFrom = function (other) { this.schemaUrl = other.schemaUrl; this.short = other.short; }; NamespaceBase.sanitize = function (name) { return (name && name.replace(/\/+$/, '')); }; return NamespaceBase; }()); exports.NamespaceBase = NamespaceBase;