Loading XML parser...

How to Parse XML - Step by Step Guide

Step 1

Input Your XML Document

Let's get your XML document into the parser! You have several convenient options:

Paste directly: Copy your SOAP response, config file, or XML data and paste it into the input editor
Upload a file: Click "Upload" to select a .xml, .txt, or other XML file from your computer
Try sample XML: Click "Sample" to load example XML and see the parser in action 🔍

Example: Complex XML Document

Here's a typical XML document with nested structures and attributes:

<?xml version="1.0" encoding="UTF-8"?>
<catalog xmlns:book="http://example.com/books">
  <book:library name="Central Library" location="Downtown">
    <book:collection category="fiction">
      <book:item id="B001" available="true">
        <book:title>The Great Gatsby</book:title>
        <book:author country="USA">F. Scott Fitzgerald</book:author>
        <book:details>
          <book:pages>180</book:pages>
          <book:price currency="USD">12.99</book:price>
          <book:publisher>Scribner</book:publisher>
        </book:details>
      </book:item>
    </book:collection>
  </book:library>
</catalog>
Step 2

Configure Parser Options

Customize how the parser processes your XML with these powerful options:

Include Attributes: Choose whether to include XML attributes in the parsed output
Namespace Handling: Automatic processing of XML namespaces and prefixes
Error Detection: Real-time validation with detailed error reporting and suggestions
Step 3

Explore the Parsed Results

The parser processes your XML and displays the results in multiple formats:

Table View: Structured table format with nested tables for complex XML hierarchies
Interactive Navigation: Click on elements to explore nested structures in detail
Data Export: Copy results or share parsed XML data with team members

Example: Parsed XML Output

The XML above gets parsed into a structured table format:

KeyValue
catalog
KeyValue
xmlns:bookhttp://example.com/books
book:library
KeyValue
nameCentral Library
locationDowntown
book:collection
KeyValue
categoryfiction
book:item
KeyValue
idB001
availabletrue
book:titleThe Great Gatsby
book:authorF. Scott Fitzgerald
book:details
Nested: pages(180), price($12.99), publisher(Scribner)