PageSourceSearch

https://exploremydata.com/assets/xmlToJson-Ds5AdbLS.js

js exploremydata.com collected 2026-09-25 20:07:32 UTC 1,474 bytes, 1 lines download raw bytes

1import{parseXmlToJson as w}from"./xmlParser-BQP2i025.js";import{previewFrom as f,textBlob as l,replaceExtension as g}from"./util-CkZ8KZK2.js";import{readText as h}from"./csvShared-8k83eY5V.js";import{recordPathFrom as x,recordPathDiscovery as P,readAttributePrefix as b}from"./xmlToCsv-DiDxuxdQ.js";import{rowsToJson as T}from"./csvToJson-sdjdRTHd.js";import{ndjsonToTable as j}from"./jsonFlatten-BvwKgkrC.js";import"./vendor-papaparse-Btpkh8vH.js";import"./cjs-helpers-D6-XlEtG.js";import"./detectTableRegion-B60ufQHb.js";import"./jsonRelaxed-DdfPn7XG.js";import"./isoDates-CF0Yt3Ao.js";function y(o,e={}){const r=w(o,{recordPath:e.recordPath,attributePrefix:b(e.attributePrefix)}),t=j(r.json);return{rows:[t.columns,...t.rows],warnings:r.warning?[r.warning,...t.warnings]:t.warnings,paths:r.paths??[],recordPath:r.recordPath??""}}const K=async o=>{o.ctx.onProgress("Reading the XML…");const e=await h(o);o.ctx.onProgress("Detecting rows…");const r=y(e,x(o.options)),{rows:t,warnings:a}=r,n=o.options.shape==="lines"?"lines":"array",c=o.options.format==="minified"?"minified":"pretty";o.ctx.onProgress("Writing JSON…");const{text:s,columns:m,body:p,warnings:d}=T(t,n,c,o.options.isoDates==="on"),i=P(r.paths,r.recordPath);return{status:"ok",output:{filename:g(o.filename,n==="lines"?"jsonl":"json"),blob:l(s,"application/json"),text:s,copyKind:"json",previewText:s,preview:f(m,p,20),warnings:[...a,...d],...i?{discovered:i}:{}}}};export{K as default,y as xmlToRows};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.