MCPcopy Create free account
hub / github.com/Exrick/xpay / getNamespace

Function getNamespace

xpay-code/src/main/resources/static/swagger/swagger-ui.js:24877–24897  ·  view source on GitHub ↗
(xml)

Source from the content-addressed store, hash-verified

24875 };
24876
24877 var getNamespace = function (xml) {
24878 var namespace = '';
24879 var name = 'xmlns';
24880
24881 xml = xml || {};
24882
24883 if (xml.namespace) {
24884 namespace = xml.namespace;
24885 } else {
24886 return namespace;
24887 }
24888
24889 if (xml.prefix) {
24890 name += ':' + xml.prefix;
24891 }
24892
24893 return {
24894 name: name,
24895 value: namespace
24896 };
24897 };
24898
24899 var createArrayXML = function (descriptor) {
24900 var name = descriptor.name;

Callers 3

createArrayXMLFunction · 0.85
createPrimitiveXMLFunction · 0.85
createObjectXMLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected