Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Configuration;
using System.Web;
namespace Custom.Helpers.Common
{
public static class Cookie
{
private const string CookieSetting = "Cookie.Duration";
private const string CookieIsHttp = "Cookie.IsHttp";
@fjcunha
fjcunha / xmlToJson.js
Created September 4, 2018 22:50 — forked from chinchang/xmlToJson.js
Function to convert XML to JSON
// Changes XML to JSON
// Modified version from here: http://davidwalsh.name/convert-xml-json
function xmlToJson(xml) {
// Create the return object
var obj = {};
if (xml.nodeType == 1) { // element
// do attributes
if (xml.attributes.length > 0) {