XML Structure and Node Types
XML (Extensible Markup Language) is a tree structure, where every element (node) is nested within a parent element. The entire document starts with a root element, and within it, there can be multiple branches and sub-elements.
When working with XML in Iguana, understanding its structure and node types allows you to efficiently manipulate and process XML documents.
<patient>
<id>12345</id>
<name>
<firstname>Bruce</firstname>
<lastname>Wayne</lastname>
</name>
<age>35</age>
<status>active</status>
<contactInfo type="email">bruce.wayne@example.com</contactInfo>
<notes><![CDATA[Some special <characters> inside this note.]]></notes>
</patient>
In this structure:
<patient>
is the root element.<id>
,<name>
,<age>
,<status>
,<contactInfo>
and<notes>
are child elements of<patient>
.<firstname>
and<lastname>
are children of the<name>
element.The text data within elements, such as
12345
andBruce
, are known as text nodes.
Iguana classifies a parsed XML using different node types:
With the XML API, you can use these node types to generate XML messages.
Â