diff options
author | Skip Wonnell <skip@att.com> | 2017-12-23 00:18:18 -0600 |
---|---|---|
committer | Patrick Brady <pb071s@att.com> | 2018-01-03 18:57:22 +0000 |
commit | caa5768a32a385bf7997029929f29fe3b156348e (patch) | |
tree | 15e5671b75577de5cd19473eea278c3f731d9e7a /appc-directed-graph/dg-loader/provider/src/main/resources/js | |
parent | e7752e8d2dd4e4460bf68a7b36548282cc68d0e9 (diff) |
Platform Hardening for DG - Part 8
Issue-ID: APPC-305
Change-Id: I70fa76837b02314bdd3211190306cfbd3564d639
Signed-off-by: Skip Wonnell <skip@att.com>
Diffstat (limited to 'appc-directed-graph/dg-loader/provider/src/main/resources/js')
-rw-r--r-- | appc-directed-graph/dg-loader/provider/src/main/resources/js/dg_xml2json.js | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/appc-directed-graph/dg-loader/provider/src/main/resources/js/dg_xml2json.js b/appc-directed-graph/dg-loader/provider/src/main/resources/js/dg_xml2json.js index 052d75d21..00e347339 100644 --- a/appc-directed-graph/dg-loader/provider/src/main/resources/js/dg_xml2json.js +++ b/appc-directed-graph/dg-loader/provider/src/main/resources/js/dg_xml2json.js @@ -1,9 +1,11 @@ /*- * ============LICENSE_START======================================================= - * ONAP : APP-C + * ONAP : APPC * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. * ================================================================================ + * Copyright (C) 2017 Amdocs + * ============================================================================= * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -15,6 +17,8 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + * + * ECOMP is a trademark and service mark of AT&T Intellectual Property. * ============LICENSE_END========================================================= */ @@ -91,11 +95,11 @@ dgconverter.getNodeToXml = function (inputNodeSet) { xmlStr += node.xml; startTag = getStartTag(node); //special handling for break node - if(xmlStr != undefined && xmlStr != null && xmlStr.trim() == "<break>"){ - fullXmlStr += "<break/>"; - }else{ - fullXmlStr +=xmlStr; - } + if(xmlStr != undefined && xmlStr != null && xmlStr.trim() == "<break>"){ + fullXmlStr += "<break/>"; + }else{ + fullXmlStr +=xmlStr; + } /* if(level > 0){ var spacing = Array(level).join(" "); @@ -137,9 +141,9 @@ dgconverter.getNodeToXml = function (inputNodeSet) { //append end tag if (startTag != "") { - if(startTag != "break"){ - fullXmlStr += "</" + startTag + ">"; - } + if(startTag != "break"){ + fullXmlStr += "</" + startTag + ">"; + } /* if(level >0){ var spacing = Array(level).join(" "); |