互联网XML智能程式

XML互联网格式化、壓縮、轉換JSON/HTML/YAML、驗證XML有效性。

tool.p2hp.com XML To HTML Converter "; var endhtml = "
xxfseo.com
"; output = starthtml + output + endhtml; return (html_beautify(output, opts)); } catch (e) { return ("Invalid XML :" + e); } } $(function() { var sourceArea = toolfk.create_codeMirror('code'); var targetArea = toolfk.create_codeMirror('result'); $(".xml2json").click(function() { toolfk.xml_2_json({ source: sourceArea, target: targetArea }); }); $(".convert-btn").click(function() { if (toolfk.beautify_default.beautify_in_progress) { return; } var source = sourceArea.getValue(); if (source == '') { return layer.msg('内容不能空.'); } toolfk.beautify_default.beautify_in_progress = true; try { var func_method = $(this).data("func"); var func = eval(func_method); var result = func(source); targetArea.setValue(result); } catch (e) { targetArea.setValue(e.message); } toolfk.beautify_default.beautify_in_progress = false; }); $(".validxml").click(function() { toolfk.valid_xml({ source: sourceArea, target: targetArea }); }); $(".beauty").click(function() { toolfk.beautify_xml({ language: 'css', source: sourceArea, target: targetArea }); }); $(".compress").click(function() { toolfk.compress_xml({ source: sourceArea, target: targetArea }); }); $(".copy-code").click(function() { toolfk.code_code({ source: sourceArea, target: targetArea, }); }); });