[{"data":1,"prerenderedAt":1120},["ShallowReactive",2],{"navigation_docs_en":3,"-en-xml-parsing":335,"-en-xml-parsing-surround":1115},[4,31,61,91,175,256],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":30},"Getting Started","i-lucide-rocket","\u002Fen\u002Fgetting-started","en\u002F01.getting-started",[10,14,18,22,26],{"title":11,"path":12,"stem":13},"Introduction","\u002Fen\u002Fgetting-started\u002Fintroduction","en\u002F01.getting-started\u002F01.introduction",{"title":15,"path":16,"stem":17},"Installation","\u002Fen\u002Fgetting-started\u002Finstallation","en\u002F01.getting-started\u002F02.installation",{"title":19,"path":20,"stem":21},"Command Line Interface (CLI)","\u002Fen\u002Fgetting-started\u002Fcommand-line-interface","en\u002F01.getting-started\u002F03.command-line-interface",{"title":23,"path":24,"stem":25},"AI Tools","\u002Fen\u002Fgetting-started\u002Fai-tools","en\u002F01.getting-started\u002F04.ai-tools",{"title":27,"path":28,"stem":29},"AI Integration","\u002Fen\u002Fgetting-started\u002Fai-integration","en\u002F01.getting-started\u002F05.ai-integration",false,{"title":32,"icon":33,"path":34,"stem":35,"children":36,"page":30},"CORE","i-lucide-box","\u002Fen\u002Fcore","en\u002F02.core",[37,41,45,49,53,57],{"title":38,"path":39,"stem":40},"@office-open\u002Fcore","\u002Fen\u002Fcore\u002Foverview","en\u002F02.core\u002F01.overview",{"title":42,"path":43,"stem":44},"Descriptor System","\u002Fen\u002Fcore\u002Fdescriptors","en\u002F02.core\u002F02.descriptors",{"title":46,"path":47,"stem":48},"Values and Validation","\u002Fen\u002Fcore\u002Fvalues","en\u002F02.core\u002F03.values",{"title":50,"path":51,"stem":52},"Unit Converters","\u002Fen\u002Fcore\u002Fconverters","en\u002F02.core\u002F04.converters",{"title":54,"path":55,"stem":56},"Charts","\u002Fen\u002Fcore\u002Fcharts","en\u002F02.core\u002F05.charts",{"title":58,"path":59,"stem":60},"Parser","\u002Fen\u002Fcore\u002Fparser","en\u002F02.core\u002F06.parser",{"title":62,"icon":63,"path":64,"stem":65,"children":66,"page":30},"XML","i-lucide-code-xml","\u002Fen\u002Fxml","en\u002F03.xml",[67,71,75,79,83,87],{"title":68,"path":69,"stem":70},"@office-open\u002Fxml","\u002Fen\u002Fxml\u002Foverview","en\u002F03.xml\u002F01.overview",{"title":72,"path":73,"stem":74},"Parsing","\u002Fen\u002Fxml\u002Fparsing","en\u002F03.xml\u002F02.parsing",{"title":76,"path":77,"stem":78},"Serialization","\u002Fen\u002Fxml\u002Fserialization","en\u002F03.xml\u002F03.serialization",{"title":80,"path":81,"stem":82},"Query Utilities","\u002Fen\u002Fxml\u002Fquery-utilities","en\u002F03.xml\u002F04.query-utilities",{"title":84,"path":85,"stem":86},"XML Escape","\u002Fen\u002Fxml\u002Fescape","en\u002F03.xml\u002F05.escape",{"title":88,"path":89,"stem":90},"Type Reference","\u002Fen\u002Fxml\u002Ftypes","en\u002F03.xml\u002F06.types",{"title":92,"icon":93,"path":94,"stem":95,"children":96,"page":30},"DOCX","i-lucide-file-text","\u002Fen\u002Fdocx","en\u002F04.docx",[97,101,105,109,113,117,121,124,128,132,136,140,144,148,152,156,160,164,168,171],{"title":98,"path":99,"stem":100},"@office-open\u002Fdocx","\u002Fen\u002Fdocx\u002Foverview","en\u002F04.docx\u002F01.overview",{"title":102,"path":103,"stem":104},"Quick Start","\u002Fen\u002Fdocx\u002Fquickstart","en\u002F04.docx\u002F02.quickstart",{"title":106,"path":107,"stem":108},"Text and Paragraphs","\u002Fen\u002Fdocx\u002Ftext-and-paragraphs","en\u002F04.docx\u002F03.text-and-paragraphs",{"title":110,"path":111,"stem":112},"Tables","\u002Fen\u002Fdocx\u002Ftables","en\u002F04.docx\u002F04.tables",{"title":114,"path":115,"stem":116},"Images","\u002Fen\u002Fdocx\u002Fimages","en\u002F04.docx\u002F05.images",{"title":118,"path":119,"stem":120},"Text Boxes","\u002Fen\u002Fdocx\u002Ftextbox","en\u002F04.docx\u002F06.textbox",{"title":54,"path":122,"stem":123},"\u002Fen\u002Fdocx\u002Fcharts","en\u002F04.docx\u002F07.charts",{"title":125,"path":126,"stem":127},"SmartArt","\u002Fen\u002Fdocx\u002Fsmartart","en\u002F04.docx\u002F08.smartart",{"title":129,"path":130,"stem":131},"Media","\u002Fen\u002Fdocx\u002Fmedia","en\u002F04.docx\u002F09.media",{"title":133,"path":134,"stem":135},"Links","\u002Fen\u002Fdocx\u002Flinks","en\u002F04.docx\u002F10.links",{"title":137,"path":138,"stem":139},"Headers and Footers","\u002Fen\u002Fdocx\u002Fheaders-and-footers","en\u002F04.docx\u002F11.headers-and-footers",{"title":141,"path":142,"stem":143},"Equations and Symbols","\u002Fen\u002Fdocx\u002Fequations-and-symbols","en\u002F04.docx\u002F12.equations-and-symbols",{"title":145,"path":146,"stem":147},"Styles and Themes","\u002Fen\u002Fdocx\u002Fstyles-and-themes","en\u002F04.docx\u002F13.styles-and-themes",{"title":149,"path":150,"stem":151},"Page Layout","\u002Fen\u002Fdocx\u002Fpage-layout","en\u002F04.docx\u002F14.page-layout",{"title":153,"path":154,"stem":155},"References","\u002Fen\u002Fdocx\u002Freferences","en\u002F04.docx\u002F15.references",{"title":157,"path":158,"stem":159},"Comments and Revisions","\u002Fen\u002Fdocx\u002Fcomments-and-revisions","en\u002F04.docx\u002F16.comments-and-revisions",{"title":161,"path":162,"stem":163},"Document Properties","\u002Fen\u002Fdocx\u002Fproperties","en\u002F04.docx\u002F17.properties",{"title":165,"path":166,"stem":167},"Export","\u002Fen\u002Fdocx\u002Fexport","en\u002F04.docx\u002F18.export",{"title":72,"path":169,"stem":170},"\u002Fen\u002Fdocx\u002Fparsing","en\u002F04.docx\u002F19.parsing",{"title":172,"path":173,"stem":174},"Patching","\u002Fen\u002Fdocx\u002Fpatch","en\u002F04.docx\u002F20.patch",{"title":176,"icon":177,"path":178,"stem":179,"children":180,"page":30},"PPTX","i-lucide-presentation","\u002Fen\u002Fpptx","en\u002F05.pptx",[181,185,188,192,195,198,201,204,207,210,214,217,220,224,227,231,235,239,243,247,250,253],{"title":182,"path":183,"stem":184},"@office-open\u002Fpptx","\u002Fen\u002Fpptx\u002Foverview","en\u002F05.pptx\u002F01.overview",{"title":102,"path":186,"stem":187},"\u002Fen\u002Fpptx\u002Fquickstart","en\u002F05.pptx\u002F02.quickstart",{"title":189,"path":190,"stem":191},"Shapes and Text","\u002Fen\u002Fpptx\u002Fshapes-and-text","en\u002F05.pptx\u002F03.shapes-and-text",{"title":110,"path":193,"stem":194},"\u002Fen\u002Fpptx\u002Ftables","en\u002F05.pptx\u002F04.tables",{"title":114,"path":196,"stem":197},"\u002Fen\u002Fpptx\u002Fimages","en\u002F05.pptx\u002F05.images",{"title":54,"path":199,"stem":200},"\u002Fen\u002Fpptx\u002Fcharts","en\u002F05.pptx\u002F06.charts",{"title":125,"path":202,"stem":203},"\u002Fen\u002Fpptx\u002Fsmartart","en\u002F05.pptx\u002F07.smartart",{"title":129,"path":205,"stem":206},"\u002Fen\u002Fpptx\u002Fmedia","en\u002F05.pptx\u002F08.media",{"title":133,"path":208,"stem":209},"\u002Fen\u002Fpptx\u002Flinks","en\u002F05.pptx\u002F09.links",{"title":211,"path":212,"stem":213},"Lines and Connectors","\u002Fen\u002Fpptx\u002Flines-and-connectors","en\u002F05.pptx\u002F10.lines-and-connectors",{"title":137,"path":215,"stem":216},"\u002Fen\u002Fpptx\u002Fheaders-and-footers","en\u002F05.pptx\u002F11.headers-and-footers",{"title":141,"path":218,"stem":219},"\u002Fen\u002Fpptx\u002Fequations-and-symbols","en\u002F05.pptx\u002F12.equations-and-symbols",{"title":221,"path":222,"stem":223},"Slide Layout","\u002Fen\u002Fpptx\u002Fslide-layout","en\u002F05.pptx\u002F13.slide-layout",{"title":145,"path":225,"stem":226},"\u002Fen\u002Fpptx\u002Fstyles-and-themes","en\u002F05.pptx\u002F14.styles-and-themes",{"title":228,"path":229,"stem":230},"Effects and Fills","\u002Fen\u002Fpptx\u002Feffects-and-fills","en\u002F05.pptx\u002F15.effects-and-fills",{"title":232,"path":233,"stem":234},"Transitions","\u002Fen\u002Fpptx\u002Ftransitions","en\u002F05.pptx\u002F16.transitions",{"title":236,"path":237,"stem":238},"Animations","\u002Fen\u002Fpptx\u002Fanimations","en\u002F05.pptx\u002F17.animations",{"title":240,"path":241,"stem":242},"Comments","\u002Fen\u002Fpptx\u002Fcomments","en\u002F05.pptx\u002F18.comments",{"title":244,"path":245,"stem":246},"Presentation Properties","\u002Fen\u002Fpptx\u002Fproperties","en\u002F05.pptx\u002F19.properties",{"title":165,"path":248,"stem":249},"\u002Fen\u002Fpptx\u002Fexport","en\u002F05.pptx\u002F20.export",{"title":72,"path":251,"stem":252},"\u002Fen\u002Fpptx\u002Fparsing","en\u002F05.pptx\u002F21.parsing",{"title":172,"path":254,"stem":255},"\u002Fen\u002Fpptx\u002Fpatch","en\u002F05.pptx\u002F22.patch",{"title":257,"icon":258,"path":259,"stem":260,"children":261,"page":30},"XLSX","i-lucide-table-2","\u002Fen\u002Fxlsx","en\u002F06.xlsx",[262,266,269,273,277,281,285,289,292,295,299,303,307,311,314,318,322,326,329,332],{"title":263,"path":264,"stem":265},"@office-open\u002Fxlsx","\u002Fen\u002Fxlsx\u002Foverview","en\u002F06.xlsx\u002F01.overview",{"title":102,"path":267,"stem":268},"\u002Fen\u002Fxlsx\u002Fquickstart","en\u002F06.xlsx\u002F02.quickstart",{"title":270,"path":271,"stem":272},"Cells & Data","\u002Fen\u002Fxlsx\u002Fcells","en\u002F06.xlsx\u002F03.cells",{"title":274,"path":275,"stem":276},"Styles","\u002Fen\u002Fxlsx\u002Fstyles","en\u002F06.xlsx\u002F04.styles",{"title":278,"path":279,"stem":280},"Merge, Columns & Rows","\u002Fen\u002Fxlsx\u002Fmerge-col-row","en\u002F06.xlsx\u002F05.merge-col-row",{"title":282,"path":283,"stem":284},"Hyperlinks","\u002Fen\u002Fxlsx\u002Flinks","en\u002F06.xlsx\u002F06.links",{"title":286,"path":287,"stem":288},"Pivot Tables","\u002Fen\u002Fxlsx\u002Fpivot-tables","en\u002F06.xlsx\u002F07.pivot-tables",{"title":114,"path":290,"stem":291},"\u002Fen\u002Fxlsx\u002Fimages","en\u002F06.xlsx\u002F08.images",{"title":54,"path":293,"stem":294},"\u002Fen\u002Fxlsx\u002Fcharts","en\u002F06.xlsx\u002F09.charts",{"title":296,"path":297,"stem":298},"Page Setup & Headers\u002FFooters","\u002Fen\u002Fxlsx\u002Fpage-setup","en\u002F06.xlsx\u002F10.page-setup",{"title":300,"path":301,"stem":302},"Formulas","\u002Fen\u002Fxlsx\u002Fformulas","en\u002F06.xlsx\u002F11.formulas",{"title":304,"path":305,"stem":306},"Freeze Panes & Auto Filter","\u002Fen\u002Fxlsx\u002Ffreeze-filter","en\u002F06.xlsx\u002F12.freeze-filter",{"title":308,"path":309,"stem":310},"Data Validation","\u002Fen\u002Fxlsx\u002Fvalidation","en\u002F06.xlsx\u002F13.validation",{"title":240,"path":312,"stem":313},"\u002Fen\u002Fxlsx\u002Fcomments","en\u002F06.xlsx\u002F14.comments",{"title":315,"path":316,"stem":317},"Protection","\u002Fen\u002Fxlsx\u002Fprotection","en\u002F06.xlsx\u002F15.protection",{"title":319,"path":320,"stem":321},"Shared Workbook Revisions","\u002Fen\u002Fxlsx\u002Frevisions","en\u002F06.xlsx\u002F16.revisions",{"title":323,"path":324,"stem":325},"Workbook Properties","\u002Fen\u002Fxlsx\u002Fproperties","en\u002F06.xlsx\u002F17.properties",{"title":165,"path":327,"stem":328},"\u002Fen\u002Fxlsx\u002Fexport","en\u002F06.xlsx\u002F18.export",{"title":72,"path":330,"stem":331},"\u002Fen\u002Fxlsx\u002Fparsing","en\u002F06.xlsx\u002F19.parsing",{"title":172,"path":333,"stem":334},"\u002Fen\u002Fxlsx\u002Fpatch","en\u002F06.xlsx\u002F20.patch",{"id":336,"title":72,"body":337,"description":1109,"extension":1110,"links":1111,"meta":1112,"navigation":395,"path":73,"seo":1113,"stem":74,"__hash__":1114},"docs_en\u002Fen\u002F03.xml\u002F02.parsing.md",{"type":338,"value":339,"toc":1100},"minimark",[340,345,459,471,475,535,540,718,722,744,842,849,907,911,914,958,968,972,978,1096],[341,342,344],"h2",{"id":343},"basic-parsing","Basic Parsing",[346,347,352],"pre",{"className":348,"code":349,"language":350,"meta":351,"style":351},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { parse } from \"@office-open\u002Fxml\";\n\nconst root = parse(`\u003Cw:p xmlns:w=\"http:\u002F\u002Fschemas.openxmlformats.org\u002Fwordprocessingml\u002F2006\u002Fmain\">\n  \u003Cw:r>\u003Cw:t>Hello\u003C\u002Fw:t>\u003C\u002Fw:r>\n\u003C\u002Fw:p>`);\n\n\u002F\u002F root.name === \"w:p\"\n\u002F\u002F root.elements[0].name === \"w:r\"\n","ts","",[353,354,355,390,397,422,428,441,446,453],"code",{"__ignoreMap":351},[356,357,360,364,368,372,375,378,381,384,387],"span",{"class":358,"line":359},"line",1,[356,361,363],{"class":362},"s7zQu","import",[356,365,367],{"class":366},"sMK4o"," {",[356,369,371],{"class":370},"sTEyZ"," parse",[356,373,374],{"class":366}," }",[356,376,377],{"class":362}," from",[356,379,380],{"class":366}," \"",[356,382,68],{"class":383},"sfazB",[356,385,386],{"class":366},"\"",[356,388,389],{"class":366},";\n",[356,391,393],{"class":358,"line":392},2,[356,394,396],{"emptyLinePlaceholder":395},true,"\n",[356,398,400,404,407,410,413,416,419],{"class":358,"line":399},3,[356,401,403],{"class":402},"spNyl","const",[356,405,406],{"class":370}," root ",[356,408,409],{"class":366},"=",[356,411,371],{"class":412},"s2Zo4",[356,414,415],{"class":370},"(",[356,417,418],{"class":366},"`",[356,420,421],{"class":383},"\u003Cw:p xmlns:w=\"http:\u002F\u002Fschemas.openxmlformats.org\u002Fwordprocessingml\u002F2006\u002Fmain\">\n",[356,423,425],{"class":358,"line":424},4,[356,426,427],{"class":383},"  \u003Cw:r>\u003Cw:t>Hello\u003C\u002Fw:t>\u003C\u002Fw:r>\n",[356,429,431,434,436,439],{"class":358,"line":430},5,[356,432,433],{"class":383},"\u003C\u002Fw:p>",[356,435,418],{"class":366},[356,437,438],{"class":370},")",[356,440,389],{"class":366},[356,442,444],{"class":358,"line":443},6,[356,445,396],{"emptyLinePlaceholder":395},[356,447,449],{"class":358,"line":448},7,[356,450,452],{"class":451},"sHwdD","\u002F\u002F root.name === \"w:p\"\n",[356,454,456],{"class":358,"line":455},8,[356,457,458],{"class":451},"\u002F\u002F root.elements[0].name === \"w:r\"\n",[460,461,462,463,466,467,470],"p",{},"The ",[353,464,465],{},"parse"," function converts an XML string into an ",[353,468,469],{},"Element"," tree.",[341,472,474],{"id":473},"parsexml-options","parse(xml, options?)",[346,476,478],{"className":348,"code":477,"language":350,"meta":351,"style":351},"const root = parse(xmlString, {\n  trim: true,\n  ignoreComment: true,\n});\n",[353,479,480,499,515,526],{"__ignoreMap":351},[356,481,482,484,486,488,490,493,496],{"class":358,"line":359},[356,483,403],{"class":402},[356,485,406],{"class":370},[356,487,409],{"class":366},[356,489,371],{"class":412},[356,491,492],{"class":370},"(xmlString",[356,494,495],{"class":366},",",[356,497,498],{"class":366}," {\n",[356,500,501,505,508,512],{"class":358,"line":392},[356,502,504],{"class":503},"swJcz","  trim",[356,506,507],{"class":366},":",[356,509,511],{"class":510},"sfNiH"," true",[356,513,514],{"class":366},",\n",[356,516,517,520,522,524],{"class":358,"line":399},[356,518,519],{"class":503},"  ignoreComment",[356,521,507],{"class":366},[356,523,511],{"class":510},[356,525,514],{"class":366},[356,527,528,531,533],{"class":358,"line":424},[356,529,530],{"class":366},"}",[356,532,438],{"class":370},[356,534,389],{"class":366},[536,537,539],"h3",{"id":538},"options","Options",[541,542,543,562],"table",{},[544,545,546],"thead",{},[547,548,549,553,556,559],"tr",{},[550,551,552],"th",{},"Option",[550,554,555],{},"Type",[550,557,558],{},"Default",[550,560,561],{},"Description",[563,564,565,586,604,625,646,664,682,700],"tbody",{},[547,566,567,573,578,583],{},[568,569,570],"td",{},[353,571,572],{},"trim",[568,574,575],{},[353,576,577],{},"boolean",[568,579,580],{},[353,581,582],{},"false",[568,584,585],{},"Trim whitespace in text nodes",[547,587,588,593,597,601],{},[568,589,590],{},[353,591,592],{},"captureSpacesBetweenElements",[568,594,595],{},[353,596,577],{},[568,598,599],{},[353,600,582],{},[568,602,603],{},"Keep whitespace-only text nodes between elements",[547,605,606,611,615,619],{},[568,607,608],{},[353,609,610],{},"ignoreDeclaration",[568,612,613],{},[353,614,577],{},[568,616,617],{},[353,618,582],{},[568,620,621,622,438],{},"Skip XML declaration (",[353,623,624],{},"\u003C?xml ...?>",[547,626,627,632,636,640],{},[568,628,629],{},[353,630,631],{},"ignoreComment",[568,633,634],{},[353,635,577],{},[568,637,638],{},[353,639,582],{},[568,641,642,643,438],{},"Skip XML comments (",[353,644,645],{},"\u003C!-- -->",[547,647,648,653,657,661],{},[568,649,650],{},[353,651,652],{},"ignoreCdata",[568,654,655],{},[353,656,577],{},[568,658,659],{},[353,660,582],{},[568,662,663],{},"Skip CDATA sections",[547,665,666,671,675,679],{},[568,667,668],{},[353,669,670],{},"ignoreDoctype",[568,672,673],{},[353,674,577],{},[568,676,677],{},[353,678,582],{},[568,680,681],{},"Skip DOCTYPE declarations",[547,683,684,689,693,697],{},[568,685,686],{},[353,687,688],{},"ignoreText",[568,690,691],{},[353,692,577],{},[568,694,695],{},[353,696,582],{},[568,698,699],{},"Skip text nodes",[547,701,702,707,711,715],{},[568,703,704],{},[353,705,706],{},"nativeTypeAttributes",[568,708,709],{},[353,710,577],{},[568,712,713],{},[353,714,582],{},[568,716,717],{},"Convert attribute values to native types",[341,719,721],{"id":720},"element-structure","Element Structure",[460,723,724,725,727,728,732,733,736,737,740,741,507],{},"Each parsed node is an ",[353,726,469],{}," object — see ",[729,730,88],"a",{"href":731},".\u002Ftypes"," for the full interface. An element typically uses ",[353,734,735],{},"name",", ",[353,738,739],{},"attributes",", and ",[353,742,743],{},"elements",[346,745,747],{"className":348,"code":746,"language":350,"meta":351,"style":351},"interface Element {\n  type?: string;\n  name?: string;\n  attributes?: Attributes;\n  elements?: Element[];\n  text?: string | number | boolean;\n  \u002F\u002F ... plus cdata, comment, declaration, etc.\n}\n",[353,748,749,760,773,784,796,810,832,837],{"__ignoreMap":351},[356,750,751,754,758],{"class":358,"line":359},[356,752,753],{"class":402},"interface",[356,755,757],{"class":756},"sBMFI"," Element",[356,759,498],{"class":366},[356,761,762,765,768,771],{"class":358,"line":392},[356,763,764],{"class":503},"  type",[356,766,767],{"class":366},"?:",[356,769,770],{"class":756}," string",[356,772,389],{"class":366},[356,774,775,778,780,782],{"class":358,"line":399},[356,776,777],{"class":503},"  name",[356,779,767],{"class":366},[356,781,770],{"class":756},[356,783,389],{"class":366},[356,785,786,789,791,794],{"class":358,"line":424},[356,787,788],{"class":503},"  attributes",[356,790,767],{"class":366},[356,792,793],{"class":756}," Attributes",[356,795,389],{"class":366},[356,797,798,801,803,805,808],{"class":358,"line":430},[356,799,800],{"class":503},"  elements",[356,802,767],{"class":366},[356,804,757],{"class":756},[356,806,807],{"class":370},"[]",[356,809,389],{"class":366},[356,811,812,815,817,819,822,825,827,830],{"class":358,"line":443},[356,813,814],{"class":503},"  text",[356,816,767],{"class":366},[356,818,770],{"class":756},[356,820,821],{"class":366}," |",[356,823,824],{"class":756}," number",[356,826,821],{"class":366},[356,828,829],{"class":756}," boolean",[356,831,389],{"class":366},[356,833,834],{"class":358,"line":448},[356,835,836],{"class":451},"  \u002F\u002F ... plus cdata, comment, declaration, etc.\n",[356,838,839],{"class":358,"line":455},[356,840,841],{"class":366},"}\n",[460,843,844,845,848],{},"Text content lives on the element's ",[353,846,847],{},"text"," field, not in a separate node:",[346,850,852],{"className":348,"code":851,"language":350,"meta":351,"style":351},"\u002F\u002F parsed \u003Cw:t>Hello World\u003C\u002Fw:t>\n{ type: \"element\", name: \"w:t\", text: \"Hello World\" }\n",[353,853,854,859],{"__ignoreMap":351},[356,855,856],{"class":358,"line":359},[356,857,858],{"class":451},"\u002F\u002F parsed \u003Cw:t>Hello World\u003C\u002Fw:t>\n",[356,860,861,864,867,869,871,874,876,878,881,883,885,888,890,892,895,897,899,902,904],{"class":358,"line":392},[356,862,863],{"class":366},"{",[356,865,866],{"class":756}," type",[356,868,507],{"class":366},[356,870,380],{"class":366},[356,872,873],{"class":383},"element",[356,875,386],{"class":366},[356,877,495],{"class":366},[356,879,880],{"class":756}," name",[356,882,507],{"class":366},[356,884,380],{"class":366},[356,886,887],{"class":383},"w:t",[356,889,386],{"class":366},[356,891,495],{"class":366},[356,893,894],{"class":756}," text",[356,896,507],{"class":366},[356,898,380],{"class":366},[356,900,901],{"class":383},"Hello World",[356,903,386],{"class":366},[356,905,906],{"class":366}," }\n",[341,908,910],{"id":909},"namespace-handling","Namespace Handling",[460,912,913],{},"Namespaces are preserved as regular attributes:",[346,915,917],{"className":348,"code":916,"language":350,"meta":351,"style":351},"const root = parse(`\u003Cw:p xmlns:w=\"http:\u002F\u002Fschemas.openxmlformats.org\u002Fwordprocessingml\u002F2006\u002Fmain\">\n  \u003Cw:r>\u003Cw:t>Hello\u003C\u002Fw:t>\u003C\u002Fw:r>\n\u003C\u002Fw:p>`);\n\n\u002F\u002F root.attributes[\"xmlns:w\"] === \"http:\u002F\u002Fschemas.openxmlformats.org\u002F...\"\n",[353,918,919,935,939,949,953],{"__ignoreMap":351},[356,920,921,923,925,927,929,931,933],{"class":358,"line":359},[356,922,403],{"class":402},[356,924,406],{"class":370},[356,926,409],{"class":366},[356,928,371],{"class":412},[356,930,415],{"class":370},[356,932,418],{"class":366},[356,934,421],{"class":383},[356,936,937],{"class":358,"line":392},[356,938,427],{"class":383},[356,940,941,943,945,947],{"class":358,"line":399},[356,942,433],{"class":383},[356,944,418],{"class":366},[356,946,438],{"class":370},[356,948,389],{"class":366},[356,950,951],{"class":358,"line":424},[356,952,396],{"emptyLinePlaceholder":395},[356,954,955],{"class":358,"line":430},[356,956,957],{"class":451},"\u002F\u002F root.attributes[\"xmlns:w\"] === \"http:\u002F\u002Fschemas.openxmlformats.org\u002F...\"\n",[460,959,960,961,736,964,967],{},"All element names include their prefix, so you query using ",[353,962,963],{},"\"w:p\"",[353,965,966],{},"\"w:r\"",", etc.",[341,969,971],{"id":970},"reading-from-zip-archives","Reading from ZIP Archives",[460,973,974,975,977],{},"Combine with ",[353,976,38],{}," to parse XML from OOXML files:",[346,979,981],{"className":348,"code":980,"language":350,"meta":351,"style":351},"import { readFileSync } from \"node:fs\";\nimport { parseArchive } from \"@office-open\u002Fcore\";\n\nconst archive = parseArchive(readFileSync(\"document.docx\"));\nconst document = archive.get(\"word\u002Fdocument.xml\");\n\u002F\u002F document is already an Element tree\n",[353,982,983,1005,1026,1030,1060,1091],{"__ignoreMap":351},[356,984,985,987,989,992,994,996,998,1001,1003],{"class":358,"line":359},[356,986,363],{"class":362},[356,988,367],{"class":366},[356,990,991],{"class":370}," readFileSync",[356,993,374],{"class":366},[356,995,377],{"class":362},[356,997,380],{"class":366},[356,999,1000],{"class":383},"node:fs",[356,1002,386],{"class":366},[356,1004,389],{"class":366},[356,1006,1007,1009,1011,1014,1016,1018,1020,1022,1024],{"class":358,"line":392},[356,1008,363],{"class":362},[356,1010,367],{"class":366},[356,1012,1013],{"class":370}," parseArchive",[356,1015,374],{"class":366},[356,1017,377],{"class":362},[356,1019,380],{"class":366},[356,1021,38],{"class":383},[356,1023,386],{"class":366},[356,1025,389],{"class":366},[356,1027,1028],{"class":358,"line":399},[356,1029,396],{"emptyLinePlaceholder":395},[356,1031,1032,1034,1037,1039,1041,1043,1046,1048,1050,1053,1055,1058],{"class":358,"line":424},[356,1033,403],{"class":402},[356,1035,1036],{"class":370}," archive ",[356,1038,409],{"class":366},[356,1040,1013],{"class":412},[356,1042,415],{"class":370},[356,1044,1045],{"class":412},"readFileSync",[356,1047,415],{"class":370},[356,1049,386],{"class":366},[356,1051,1052],{"class":383},"document.docx",[356,1054,386],{"class":366},[356,1056,1057],{"class":370},"))",[356,1059,389],{"class":366},[356,1061,1062,1064,1067,1069,1072,1075,1078,1080,1082,1085,1087,1089],{"class":358,"line":430},[356,1063,403],{"class":402},[356,1065,1066],{"class":370}," document ",[356,1068,409],{"class":366},[356,1070,1071],{"class":370}," archive",[356,1073,1074],{"class":366},".",[356,1076,1077],{"class":412},"get",[356,1079,415],{"class":370},[356,1081,386],{"class":366},[356,1083,1084],{"class":383},"word\u002Fdocument.xml",[356,1086,386],{"class":366},[356,1088,438],{"class":370},[356,1090,389],{"class":366},[356,1092,1093],{"class":358,"line":443},[356,1094,1095],{"class":451},"\u002F\u002F document is already an Element tree\n",[1097,1098,1099],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}",{"title":351,"searchDepth":392,"depth":392,"links":1101},[1102,1103,1106,1107,1108],{"id":343,"depth":392,"text":344},{"id":473,"depth":392,"text":474,"children":1104},[1105],{"id":538,"depth":399,"text":539},{"id":720,"depth":392,"text":721},{"id":909,"depth":392,"text":910},{"id":970,"depth":392,"text":971},"Parse XML strings into Element trees with configurable options","md",null,{},{"title":72,"description":1109},"yMPWJcDIMQFAY9dPFGLIk77mS3R70vPbDVhHWSc4gf4",[1116,1118],{"title":68,"path":69,"stem":70,"description":1117,"children":-1},"Zero-dependency XML parsing and serialization library",{"title":76,"path":77,"stem":78,"description":1119,"children":-1},"Convert Element trees back to XML strings with formatting options",1787501519619]