aboutsummaryrefslogtreecommitdiff
path: root/tests/xo/saved
diff options
context:
space:
mode:
Diffstat (limited to 'tests/xo/saved')
-rw-r--r--tests/xo/saved/xo_01.H.out2
-rw-r--r--tests/xo/saved/xo_01.HIPx.out4
-rw-r--r--tests/xo/saved/xo_01.HP.out4
-rw-r--r--tests/xo/saved/xo_01.J.out2
-rw-r--r--tests/xo/saved/xo_01.JP.out2
-rw-r--r--tests/xo/saved/xo_01.T.out1
-rw-r--r--tests/xo/saved/xo_02.H.err25
-rw-r--r--tests/xo/saved/xo_02.H.out1
-rw-r--r--tests/xo/saved/xo_02.HIPx.err25
-rw-r--r--tests/xo/saved/xo_02.HIPx.out83
-rw-r--r--tests/xo/saved/xo_02.HP.err25
-rw-r--r--tests/xo/saved/xo_02.HP.out83
-rw-r--r--tests/xo/saved/xo_02.J.err25
-rw-r--r--tests/xo/saved/xo_02.J.out7
-rw-r--r--tests/xo/saved/xo_02.JP.err25
-rw-r--r--tests/xo/saved/xo_02.JP.out84
-rw-r--r--tests/xo/saved/xo_02.T.err25
-rw-r--r--tests/xo/saved/xo_02.T.out14
-rw-r--r--tests/xo/saved/xo_02.X.err25
-rw-r--r--tests/xo/saved/xo_02.X.out1
-rw-r--r--tests/xo/saved/xo_02.XP.err25
-rw-r--r--tests/xo/saved/xo_02.XP.out74
22 files changed, 559 insertions, 3 deletions
diff --git a/tests/xo/saved/xo_01.H.out b/tests/xo/saved/xo_01.H.out
index 6d115c9abfae..a8b0e4783c8d 100644
--- a/tests/xo/saved/xo_01.H.out
+++ b/tests/xo/saved/xo_01.H.out
@@ -1 +1 @@
-<div class="line"><div class="text">Item </div><div class="data" data-tag="name">one</div><div class="text"> is </div><div class="label">number</div><div class="padding"> </div><div class="data" data-tag="value">001</div><div class="text">, </div><div class="label">color</div><div class="decoration">:</div><div class="padding"> </div><div class="data" data-tag="color">red</div></div><div class="line"><div class="text">Item </div><div class="data" data-tag="name">two</div><div class="text"> is </div><div class="label">number</div><div class="padding"> </div><div class="data" data-tag="value">002</div><div class="text">, </div><div class="label">color</div><div class="decoration">:</div><div class="padding"> </div><div class="data" data-tag="color">blue</div></div><div class="line"><div class="text">Item </div><div class="data" data-tag="name">three</div><div class="text"> is </div><div class="label">number</div><div class="padding"> </div><div class="data" data-tag="value">003</div><div class="text">, </div><div class="label">color</div><div class="decoration">:</div><div class="padding"> </div><div class="data" data-tag="color">green</div></div><div class="line"><div class="text">Item </div><div class="data" data-tag="name">four</div><div class="text"> is </div><div class="label">number</div><div class="padding"> </div><div class="data" data-tag="value">004</div><div class="text">, </div><div class="label">color</div><div class="decoration">:</div><div class="padding"> </div><div class="data" data-tag="color">yellow</div></div><div class="padding"> </div><div class="line"><div class="data" data-tag="address">0xdeadbeef</div><div class="text">..</div><div class="data" data-tag="foo">1</div></div><div class="padding"> </div><div class="line"><div class="data" data-tag="address">0xdeadbeef</div><div class="text">..</div><div class="data" data-tag="foo">1</div></div><div class="padding"> </div><div class="line"><div class="data" data-tag="address">0xdeadbeef</div><div class="text">..</div><div class="data" data-tag="foo">1</div></div><div class="padding"> </div><div class="line"><div class="data" data-tag="address">0xdeadbeef</div><div class="text">..</div><div class="data" data-tag="foo">1</div></div> \ No newline at end of file
+<div class="line"><div class="text">Item </div><div class="data" data-tag="name">one</div><div class="text"> is </div><div class="label">number</div><div class="padding"> </div><div class="data" data-tag="value">001</div><div class="text">, </div><div class="label">color</div><div class="decoration">:</div><div class="padding"> </div><div class="data" data-tag="color">red</div></div><div class="line"><div class="text">Item </div><div class="data" data-tag="name">two</div><div class="text"> is </div><div class="label">number</div><div class="padding"> </div><div class="data" data-tag="value">002</div><div class="text">, </div><div class="label">color</div><div class="decoration">:</div><div class="padding"> </div><div class="data" data-tag="color">blue</div></div><div class="line"><div class="text">Item </div><div class="data" data-tag="name">three</div><div class="text"> is </div><div class="label">number</div><div class="padding"> </div><div class="data" data-tag="value">003</div><div class="text">, </div><div class="label">color</div><div class="decoration">:</div><div class="padding"> </div><div class="data" data-tag="color">green</div></div><div class="line"><div class="text">Item </div><div class="data" data-tag="name">four</div><div class="text"> is </div><div class="label">number</div><div class="padding"> </div><div class="data" data-tag="value">004</div><div class="text">, </div><div class="label">color</div><div class="decoration">:</div><div class="padding"> </div><div class="data" data-tag="color">yellow</div></div><div class="padding"> </div><div class="line"><div class="data" data-tag="address">0xdeadbeef</div><div class="text">..</div><div class="data" data-tag="foo">1</div></div><div class="padding"> </div><div class="line"><div class="data" data-tag="address">0xdeadbeef</div><div class="text">..</div><div class="data" data-tag="foo">1</div></div><div class="padding"> </div><div class="line"><div class="data" data-tag="address">0xdeadbeef</div><div class="text">..</div><div class="data" data-tag="foo">1</div></div><div class="padding"> </div><div class="line"><div class="data" data-tag="address">0xdeadbeef</div><div class="text">..</div><div class="data" data-tag="foo">1</div></div><div class="line"><div class="text">partial line</div><div class="text"> -- rest of line</div></div> \ No newline at end of file
diff --git a/tests/xo/saved/xo_01.HIPx.out b/tests/xo/saved/xo_01.HIPx.out
index 66ba7b6a4d80..51d57cd731f0 100644
--- a/tests/xo/saved/xo_01.HIPx.out
+++ b/tests/xo/saved/xo_01.HIPx.out
@@ -74,3 +74,7 @@
<div class="text">..</div>
<div class="data" data-tag="foo" data-xpath="/anchor/foo">1</div>
</div>
+<div class="line">
+ <div class="text">partial line</div>
+ <div class="text"> -- rest of line</div>
+</div>
diff --git a/tests/xo/saved/xo_01.HP.out b/tests/xo/saved/xo_01.HP.out
index 2bda085da4f2..1f8bce7047c7 100644
--- a/tests/xo/saved/xo_01.HP.out
+++ b/tests/xo/saved/xo_01.HP.out
@@ -74,3 +74,7 @@
<div class="text">..</div>
<div class="data" data-tag="foo">1</div>
</div>
+<div class="line">
+ <div class="text">partial line</div>
+ <div class="text"> -- rest of line</div>
+</div>
diff --git a/tests/xo/saved/xo_01.J.out b/tests/xo/saved/xo_01.J.out
index 7bf42260ffad..a372383b2f90 100644
--- a/tests/xo/saved/xo_01.J.out
+++ b/tests/xo/saved/xo_01.J.out
@@ -1 +1 @@
-"top": {"item": {"name":"one","value":1,"color":"red"}, "item": {"name":"two","value":2,"color":"blue"}, "item": {"name":"three","value":3,"color":"green"}, "item": {"name":"four","value":4,"color":"yellow"}, "anchor": {"address":"0xdeadbeef","foo":1}, "anchor": {"address":"0xdeadbeef","foo":1}, "anchor": {"address":"0xdeadbeef","foo":1}, "anchor": {"address":"0xdeadbeef","foo":1}}
+"top": {"item": {"name":"one","value":1,"color":"red"}, "item": {"name":"two","value":2,"color":"blue"}, "item": {"name":"three","value":3,"color":"green"}, "item": {"name":"four","value":4,"color":"yellow"}, "anchor": {"address":"0xdeadbeef","foo":1}, "anchor": {"address":"0xdeadbeef","foo":1}, "anchor": {"address":"0xdeadbeef","foo":1}, "anchor": {"address":"0xdeadbeef","foo":1}} \ No newline at end of file
diff --git a/tests/xo/saved/xo_01.JP.out b/tests/xo/saved/xo_01.JP.out
index 95ac0e244e99..80c2b311b90e 100644
--- a/tests/xo/saved/xo_01.JP.out
+++ b/tests/xo/saved/xo_01.JP.out
@@ -35,4 +35,4 @@
"address": "0xdeadbeef",
"foo": 1
}
-}
+} \ No newline at end of file
diff --git a/tests/xo/saved/xo_01.T.out b/tests/xo/saved/xo_01.T.out
index 8b67427be4a0..731603a03d80 100644
--- a/tests/xo/saved/xo_01.T.out
+++ b/tests/xo/saved/xo_01.T.out
@@ -6,3 +6,4 @@ Item four is number 004, color: yellow
0xdeadbeef..1
0xdeadbeef..1
0xdeadbeef..1
+partial line -- rest of line
diff --git a/tests/xo/saved/xo_02.H.err b/tests/xo/saved/xo_02.H.err
new file mode 100644
index 000000000000..0c348c734898
--- /dev/null
+++ b/tests/xo/saved/xo_02.H.err
@@ -0,0 +1,25 @@
+Usage: xo [options] format [fields]
+ --close <path> Close tags for the given path
+ --close-instance <name> Close an open instance name
+ --close-list <name> Close an open list name
+ --continuation OR -C Output belongs on same line as previous output
+ --depth <num> Set the depth for pretty printing
+ --help Display this help text
+ --html OR -H Generate HTML output
+ --json OR -J Generate JSON output
+ --leading-xpath <path> OR -l <path> Add a prefix to generated XPaths (HTML)
+ --not-first Indicate this object is not the first (JSON)
+ --open <path> Open tags for the given path
+ --open-instance <name> Open an instance given by name
+ --open-list <name> Open a list given by name
+ --option <opts> -or -O <opts> Give formatting options
+ --pretty OR -p Make 'pretty' output (add indent, newlines)
+ --style <style> OR -s <style> Generate given style (xml, json, text, html)
+ --text OR -T Generate text output (the default style)
+ --top-wrap Generate a top-level object wrapper (JSON)
+ --version Display version information
+ --warn OR -W Display warnings in text on stderr
+ --warn-xml Display warnings in xml on stdout
+ --wrap <path> Wrap output in a set of containers
+ --xml OR -X Generate XML output
+ --xpath Add XPath data to HTML output
diff --git a/tests/xo/saved/xo_02.H.out b/tests/xo/saved/xo_02.H.out
new file mode 100644
index 000000000000..3eb4ec6a1b85
--- /dev/null
+++ b/tests/xo/saved/xo_02.H.out
@@ -0,0 +1 @@
+<div class="line"><div class="text">The capital of </div><div class="data" data-tag="state">North Carolina</div><div class="text"> is </div><div class="data" data-tag="city">Raleigh</div></div><div class="line"><div class="text">The capital of </div><div class="data" data-tag="state">North Carolina</div><div class="text"> is </div><div class="data" data-tag="city">Raleigh</div></div><div class="line"><div class="text">The capital of </div><div class="data" data-tag="state">North Carolina</div><div class="text"> is </div><div class="data" data-tag="city">Raleigh</div></div><div class="line"><div class="text">The capital of </div><div class="data" data-tag="state">North Carolina</div><div class="text"> is </div><div class="data" data-tag="city">Raleigh</div></div><div class="line"><div class="text">The capital of </div><div class="data" data-tag="state">North Carolina</div><div class="text"> is </div><div class="data" data-tag="city">Raleigh</div></div><div class="line"><div class="text">The capital of </div><div class="data" data-tag="state">North Carolina</div><div class="text"> is </div><div class="data" data-tag="city">Raleigh</div></div><div class="line"><div class="text">The capital of </div><div class="data" data-tag="state">North Carolina</div><div class="text"> is </div><div class="data" data-tag="city">Raleigh</div></div><div class="line"><div class="text">The capital of </div><div class="data" data-tag="state">North Carolina</div><div class="text"> is </div><div class="data" data-tag="city">Raleigh</div></div><div class="line"><div class="text">test</div></div><div class="line"><div class="text">Answer:</div><div class="text">The capital of </div><div class="data" data-tag="state">North Carolina</div><div class="text"> is </div><div class="data" data-tag="city">Raleigh</div></div><div class="line"><div class="text">First </div><div class="data" data-tag="tag">value1</div><div class="text"> </div><div class="text">and then </div><div class="data" data-tag="tag">value2</div></div><div class="line"><div class="text">Machine </div><div class="data" data-tag="name">red</div><div class="text"> has </div><div class="data" data-tag="memory">55</div></div><div class="line"><div class="text">Machine </div><div class="data" data-tag="name">green</div><div class="text"> has </div><div class="data" data-tag="memory">55</div></div><div class="line"><div class="text">Machine </div><div class="data" data-tag="name">blue</div><div class="text"> has </div><div class="data" data-tag="memory">55</div></div> \ No newline at end of file
diff --git a/tests/xo/saved/xo_02.HIPx.err b/tests/xo/saved/xo_02.HIPx.err
new file mode 100644
index 000000000000..0c348c734898
--- /dev/null
+++ b/tests/xo/saved/xo_02.HIPx.err
@@ -0,0 +1,25 @@
+Usage: xo [options] format [fields]
+ --close <path> Close tags for the given path
+ --close-instance <name> Close an open instance name
+ --close-list <name> Close an open list name
+ --continuation OR -C Output belongs on same line as previous output
+ --depth <num> Set the depth for pretty printing
+ --help Display this help text
+ --html OR -H Generate HTML output
+ --json OR -J Generate JSON output
+ --leading-xpath <path> OR -l <path> Add a prefix to generated XPaths (HTML)
+ --not-first Indicate this object is not the first (JSON)
+ --open <path> Open tags for the given path
+ --open-instance <name> Open an instance given by name
+ --open-list <name> Open a list given by name
+ --option <opts> -or -O <opts> Give formatting options
+ --pretty OR -p Make 'pretty' output (add indent, newlines)
+ --style <style> OR -s <style> Generate given style (xml, json, text, html)
+ --text OR -T Generate text output (the default style)
+ --top-wrap Generate a top-level object wrapper (JSON)
+ --version Display version information
+ --warn OR -W Display warnings in text on stderr
+ --warn-xml Display warnings in xml on stdout
+ --wrap <path> Wrap output in a set of containers
+ --xml OR -X Generate XML output
+ --xpath Add XPath data to HTML output
diff --git a/tests/xo/saved/xo_02.HIPx.out b/tests/xo/saved/xo_02.HIPx.out
new file mode 100644
index 000000000000..7a78a6b542cd
--- /dev/null
+++ b/tests/xo/saved/xo_02.HIPx.out
@@ -0,0 +1,83 @@
+<div class="line">
+ <div class="text">The capital of </div>
+ <div class="data" data-tag="state" data-xpath="/a/b/c/state">North Carolina</div>
+ <div class="text"> is </div>
+ <div class="data" data-tag="city" data-xpath="/a/b/c/city">Raleigh</div>
+</div>
+<div class="line">
+ <div class="text">The capital of </div>
+ <div class="data" data-tag="state" data-xpath="/state">North Carolina</div>
+ <div class="text"> is </div>
+ <div class="data" data-tag="city" data-xpath="/city">Raleigh</div>
+</div>
+<div class="line">
+ <div class="text">The capital of </div>
+ <div class="data" data-tag="state" data-xpath="/a/b/c/state">North Carolina</div>
+ <div class="text"> is </div>
+ <div class="data" data-tag="city" data-xpath="/a/b/c/city">Raleigh</div>
+</div>
+<div class="line">
+ <div class="text">The capital of </div>
+ <div class="data" data-tag="state" data-xpath="/a/b/c/state">North Carolina</div>
+ <div class="text"> is </div>
+ <div class="data" data-tag="city" data-xpath="/a/b/c/city">Raleigh</div>
+</div>
+<div class="line">
+ <div class="text">The capital of </div>
+ <div class="data" data-tag="state" data-xpath="/d/e/f/state">North Carolina</div>
+ <div class="text"> is </div>
+ <div class="data" data-tag="city" data-xpath="/d/e/f/city">Raleigh</div>
+</div>
+<div class="line">
+ <div class="text">The capital of </div>
+ <div class="data" data-tag="state" data-xpath="/state">North Carolina</div>
+ <div class="text"> is </div>
+ <div class="data" data-tag="city" data-xpath="/city">Raleigh</div>
+</div>
+<div class="line">
+ <div class="text">The capital of </div>
+ <div class="data" data-tag="state" data-xpath="/a/b/c/state">North Carolina</div>
+ <div class="text"> is </div>
+ <div class="data" data-tag="city" data-xpath="/a/b/c/city">Raleigh</div>
+</div>
+<div class="line">
+ <div class="text">The capital of </div>
+ <div class="data" data-tag="state" data-xpath="/a/b/c/state">North Carolina</div>
+ <div class="text"> is </div>
+ <div class="data" data-tag="city" data-xpath="/a/b/c/city">Raleigh</div>
+</div>
+<div class="line">
+ <div class="text">test</div>
+</div>
+<div class="line">
+ <div class="text">Answer:</div>
+ <div class="text">The capital of </div>
+ <div class="data" data-tag="state" data-xpath="/state">North Carolina</div>
+ <div class="text"> is </div>
+ <div class="data" data-tag="city" data-xpath="/city">Raleigh</div>
+</div>
+<div class="line">
+ <div class="text">First </div>
+ <div class="data" data-tag="tag" data-xpath="/tag">value1</div>
+ <div class="text"> </div>
+ <div class="text">and then </div>
+ <div class="data" data-tag="tag" data-xpath="/tag">value2</div>
+</div>
+<div class="line">
+ <div class="text">Machine </div>
+ <div class="data" data-tag="name" data-xpath="/name">red</div>
+ <div class="text"> has </div>
+ <div class="data" data-tag="memory" data-xpath="/memory">55</div>
+</div>
+<div class="line">
+ <div class="text">Machine </div>
+ <div class="data" data-tag="name" data-xpath="/name">green</div>
+ <div class="text"> has </div>
+ <div class="data" data-tag="memory" data-xpath="/memory">55</div>
+</div>
+<div class="line">
+ <div class="text">Machine </div>
+ <div class="data" data-tag="name" data-xpath="/name">blue</div>
+ <div class="text"> has </div>
+ <div class="data" data-tag="memory" data-xpath="/memory">55</div>
+</div>
diff --git a/tests/xo/saved/xo_02.HP.err b/tests/xo/saved/xo_02.HP.err
new file mode 100644
index 000000000000..0c348c734898
--- /dev/null
+++ b/tests/xo/saved/xo_02.HP.err
@@ -0,0 +1,25 @@
+Usage: xo [options] format [fields]
+ --close <path> Close tags for the given path
+ --close-instance <name> Close an open instance name
+ --close-list <name> Close an open list name
+ --continuation OR -C Output belongs on same line as previous output
+ --depth <num> Set the depth for pretty printing
+ --help Display this help text
+ --html OR -H Generate HTML output
+ --json OR -J Generate JSON output
+ --leading-xpath <path> OR -l <path> Add a prefix to generated XPaths (HTML)
+ --not-first Indicate this object is not the first (JSON)
+ --open <path> Open tags for the given path
+ --open-instance <name> Open an instance given by name
+ --open-list <name> Open a list given by name
+ --option <opts> -or -O <opts> Give formatting options
+ --pretty OR -p Make 'pretty' output (add indent, newlines)
+ --style <style> OR -s <style> Generate given style (xml, json, text, html)
+ --text OR -T Generate text output (the default style)
+ --top-wrap Generate a top-level object wrapper (JSON)
+ --version Display version information
+ --warn OR -W Display warnings in text on stderr
+ --warn-xml Display warnings in xml on stdout
+ --wrap <path> Wrap output in a set of containers
+ --xml OR -X Generate XML output
+ --xpath Add XPath data to HTML output
diff --git a/tests/xo/saved/xo_02.HP.out b/tests/xo/saved/xo_02.HP.out
new file mode 100644
index 000000000000..3e97e691540c
--- /dev/null
+++ b/tests/xo/saved/xo_02.HP.out
@@ -0,0 +1,83 @@
+<div class="line">
+ <div class="text">The capital of </div>
+ <div class="data" data-tag="state">North Carolina</div>
+ <div class="text"> is </div>
+ <div class="data" data-tag="city">Raleigh</div>
+</div>
+<div class="line">
+ <div class="text">The capital of </div>
+ <div class="data" data-tag="state">North Carolina</div>
+ <div class="text"> is </div>
+ <div class="data" data-tag="city">Raleigh</div>
+</div>
+<div class="line">
+ <div class="text">The capital of </div>
+ <div class="data" data-tag="state">North Carolina</div>
+ <div class="text"> is </div>
+ <div class="data" data-tag="city">Raleigh</div>
+</div>
+<div class="line">
+ <div class="text">The capital of </div>
+ <div class="data" data-tag="state">North Carolina</div>
+ <div class="text"> is </div>
+ <div class="data" data-tag="city">Raleigh</div>
+</div>
+<div class="line">
+ <div class="text">The capital of </div>
+ <div class="data" data-tag="state">North Carolina</div>
+ <div class="text"> is </div>
+ <div class="data" data-tag="city">Raleigh</div>
+</div>
+<div class="line">
+ <div class="text">The capital of </div>
+ <div class="data" data-tag="state">North Carolina</div>
+ <div class="text"> is </div>
+ <div class="data" data-tag="city">Raleigh</div>
+</div>
+<div class="line">
+ <div class="text">The capital of </div>
+ <div class="data" data-tag="state">North Carolina</div>
+ <div class="text"> is </div>
+ <div class="data" data-tag="city">Raleigh</div>
+</div>
+<div class="line">
+ <div class="text">The capital of </div>
+ <div class="data" data-tag="state">North Carolina</div>
+ <div class="text"> is </div>
+ <div class="data" data-tag="city">Raleigh</div>
+</div>
+<div class="line">
+ <div class="text">test</div>
+</div>
+<div class="line">
+ <div class="text">Answer:</div>
+ <div class="text">The capital of </div>
+ <div class="data" data-tag="state">North Carolina</div>
+ <div class="text"> is </div>
+ <div class="data" data-tag="city">Raleigh</div>
+</div>
+<div class="line">
+ <div class="text">First </div>
+ <div class="data" data-tag="tag">value1</div>
+ <div class="text"> </div>
+ <div class="text">and then </div>
+ <div class="data" data-tag="tag">value2</div>
+</div>
+<div class="line">
+ <div class="text">Machine </div>
+ <div class="data" data-tag="name">red</div>
+ <div class="text"> has </div>
+ <div class="data" data-tag="memory">55</div>
+</div>
+<div class="line">
+ <div class="text">Machine </div>
+ <div class="data" data-tag="name">green</div>
+ <div class="text"> has </div>
+ <div class="data" data-tag="memory">55</div>
+</div>
+<div class="line">
+ <div class="text">Machine </div>
+ <div class="data" data-tag="name">blue</div>
+ <div class="text"> has </div>
+ <div class="data" data-tag="memory">55</div>
+</div>
diff --git a/tests/xo/saved/xo_02.J.err b/tests/xo/saved/xo_02.J.err
new file mode 100644
index 000000000000..0c348c734898
--- /dev/null
+++ b/tests/xo/saved/xo_02.J.err
@@ -0,0 +1,25 @@
+Usage: xo [options] format [fields]
+ --close <path> Close tags for the given path
+ --close-instance <name> Close an open instance name
+ --close-list <name> Close an open list name
+ --continuation OR -C Output belongs on same line as previous output
+ --depth <num> Set the depth for pretty printing
+ --help Display this help text
+ --html OR -H Generate HTML output
+ --json OR -J Generate JSON output
+ --leading-xpath <path> OR -l <path> Add a prefix to generated XPaths (HTML)
+ --not-first Indicate this object is not the first (JSON)
+ --open <path> Open tags for the given path
+ --open-instance <name> Open an instance given by name
+ --open-list <name> Open a list given by name
+ --option <opts> -or -O <opts> Give formatting options
+ --pretty OR -p Make 'pretty' output (add indent, newlines)
+ --style <style> OR -s <style> Generate given style (xml, json, text, html)
+ --text OR -T Generate text output (the default style)
+ --top-wrap Generate a top-level object wrapper (JSON)
+ --version Display version information
+ --warn OR -W Display warnings in text on stderr
+ --warn-xml Display warnings in xml on stdout
+ --wrap <path> Wrap output in a set of containers
+ --xml OR -X Generate XML output
+ --xpath Add XPath data to HTML output
diff --git a/tests/xo/saved/xo_02.J.out b/tests/xo/saved/xo_02.J.out
new file mode 100644
index 000000000000..f11f784416b3
--- /dev/null
+++ b/tests/xo/saved/xo_02.J.out
@@ -0,0 +1,7 @@
+{"a": {"b": {"c": {"state":"North Carolina","city":"Raleigh","state":"North Carolina","city":"Raleigh"}}}}
+{"a": {"b": {"c": {"state":"North Carolina","city":"Raleigh"}}}}
+{"a": {"b": {"c": {"state":"North Carolina","city":"Raleigh", "d": {"e": {"f": {"state":"North Carolina","city":"Raleigh"}}},"state":"North Carolina","city":"Raleigh"}}}}
+"a": {"b": {"c": {"state":"North Carolina","city":"Raleigh"}}}{"a": {"b": {"c": {"state":"North Carolina","city":"Raleigh"}}}}
+{ }
+"answer": {"state":"North Carolina","city":"Raleigh"}{"top": {"data": {"tag":"value1""tag":"value2"}}}
+"machine": [{"name":"red","memory":"55"}, {"name":"green","memory":"55"}, {"name":"blue","memory":"55"}] \ No newline at end of file
diff --git a/tests/xo/saved/xo_02.JP.err b/tests/xo/saved/xo_02.JP.err
new file mode 100644
index 000000000000..0c348c734898
--- /dev/null
+++ b/tests/xo/saved/xo_02.JP.err
@@ -0,0 +1,25 @@
+Usage: xo [options] format [fields]
+ --close <path> Close tags for the given path
+ --close-instance <name> Close an open instance name
+ --close-list <name> Close an open list name
+ --continuation OR -C Output belongs on same line as previous output
+ --depth <num> Set the depth for pretty printing
+ --help Display this help text
+ --html OR -H Generate HTML output
+ --json OR -J Generate JSON output
+ --leading-xpath <path> OR -l <path> Add a prefix to generated XPaths (HTML)
+ --not-first Indicate this object is not the first (JSON)
+ --open <path> Open tags for the given path
+ --open-instance <name> Open an instance given by name
+ --open-list <name> Open a list given by name
+ --option <opts> -or -O <opts> Give formatting options
+ --pretty OR -p Make 'pretty' output (add indent, newlines)
+ --style <style> OR -s <style> Generate given style (xml, json, text, html)
+ --text OR -T Generate text output (the default style)
+ --top-wrap Generate a top-level object wrapper (JSON)
+ --version Display version information
+ --warn OR -W Display warnings in text on stderr
+ --warn-xml Display warnings in xml on stdout
+ --wrap <path> Wrap output in a set of containers
+ --xml OR -X Generate XML output
+ --xpath Add XPath data to HTML output
diff --git a/tests/xo/saved/xo_02.JP.out b/tests/xo/saved/xo_02.JP.out
new file mode 100644
index 000000000000..c540731430a4
--- /dev/null
+++ b/tests/xo/saved/xo_02.JP.out
@@ -0,0 +1,84 @@
+{
+ "a": {
+ "b": {
+ "c": {
+ "state": "North Carolina",
+ "city": "Raleigh",
+ "state": "North Carolina",
+ "city": "Raleigh"
+ }
+ }
+ }
+}
+{
+ "a": {
+ "b": {
+ "c": {
+ "state": "North Carolina",
+ "city": "Raleigh"
+ }
+ }
+ }
+}
+{
+ "a": {
+ "b": {
+ "c": {
+ "state": "North Carolina",
+ "city": "Raleigh",
+ "d": {
+ "e": {
+ "f": {
+ "state": "North Carolina",
+ "city": "Raleigh"
+ }
+ }
+ },
+ "state": "North Carolina",
+ "city": "Raleigh"
+ }
+ }
+ }
+}
+"a": {
+ "b": {
+ "c": {
+ "state": "North Carolina",
+ "city": "Raleigh"
+ }
+ }
+}{
+ "a": {
+ "b": {
+ "c": {
+ "state": "North Carolina",
+ "city": "Raleigh"
+ }
+ }
+ }
+}
+{ }
+"answer": {
+"state": "North Carolina",
+"city": "Raleigh"
+}{
+ "top": {
+ "data": {
+ "tag": "value1" "tag": "value2"
+ }
+ }
+}
+"machine": [
+ {
+ "name": "red",
+ "memory": "55"
+ },
+ {
+ "name": "green",
+ "memory": "55"
+ },
+ {
+ "name": "blue",
+ "memory": "55"
+ }
+] \ No newline at end of file
diff --git a/tests/xo/saved/xo_02.T.err b/tests/xo/saved/xo_02.T.err
new file mode 100644
index 000000000000..0c348c734898
--- /dev/null
+++ b/tests/xo/saved/xo_02.T.err
@@ -0,0 +1,25 @@
+Usage: xo [options] format [fields]
+ --close <path> Close tags for the given path
+ --close-instance <name> Close an open instance name
+ --close-list <name> Close an open list name
+ --continuation OR -C Output belongs on same line as previous output
+ --depth <num> Set the depth for pretty printing
+ --help Display this help text
+ --html OR -H Generate HTML output
+ --json OR -J Generate JSON output
+ --leading-xpath <path> OR -l <path> Add a prefix to generated XPaths (HTML)
+ --not-first Indicate this object is not the first (JSON)
+ --open <path> Open tags for the given path
+ --open-instance <name> Open an instance given by name
+ --open-list <name> Open a list given by name
+ --option <opts> -or -O <opts> Give formatting options
+ --pretty OR -p Make 'pretty' output (add indent, newlines)
+ --style <style> OR -s <style> Generate given style (xml, json, text, html)
+ --text OR -T Generate text output (the default style)
+ --top-wrap Generate a top-level object wrapper (JSON)
+ --version Display version information
+ --warn OR -W Display warnings in text on stderr
+ --warn-xml Display warnings in xml on stdout
+ --wrap <path> Wrap output in a set of containers
+ --xml OR -X Generate XML output
+ --xpath Add XPath data to HTML output
diff --git a/tests/xo/saved/xo_02.T.out b/tests/xo/saved/xo_02.T.out
new file mode 100644
index 000000000000..2eea241963fe
--- /dev/null
+++ b/tests/xo/saved/xo_02.T.out
@@ -0,0 +1,14 @@
+The capital of North Carolina is Raleigh
+The capital of North Carolina is Raleigh
+The capital of North Carolina is Raleigh
+The capital of North Carolina is Raleigh
+The capital of North Carolina is Raleigh
+The capital of North Carolina is Raleigh
+The capital of North Carolina is Raleigh
+The capital of North Carolina is Raleigh
+test
+Answer:The capital of North Carolina is Raleigh
+First value1 and then value2
+Machine red has 55
+Machine green has 55
+Machine blue has 55
diff --git a/tests/xo/saved/xo_02.X.err b/tests/xo/saved/xo_02.X.err
new file mode 100644
index 000000000000..0c348c734898
--- /dev/null
+++ b/tests/xo/saved/xo_02.X.err
@@ -0,0 +1,25 @@
+Usage: xo [options] format [fields]
+ --close <path> Close tags for the given path
+ --close-instance <name> Close an open instance name
+ --close-list <name> Close an open list name
+ --continuation OR -C Output belongs on same line as previous output
+ --depth <num> Set the depth for pretty printing
+ --help Display this help text
+ --html OR -H Generate HTML output
+ --json OR -J Generate JSON output
+ --leading-xpath <path> OR -l <path> Add a prefix to generated XPaths (HTML)
+ --not-first Indicate this object is not the first (JSON)
+ --open <path> Open tags for the given path
+ --open-instance <name> Open an instance given by name
+ --open-list <name> Open a list given by name
+ --option <opts> -or -O <opts> Give formatting options
+ --pretty OR -p Make 'pretty' output (add indent, newlines)
+ --style <style> OR -s <style> Generate given style (xml, json, text, html)
+ --text OR -T Generate text output (the default style)
+ --top-wrap Generate a top-level object wrapper (JSON)
+ --version Display version information
+ --warn OR -W Display warnings in text on stderr
+ --warn-xml Display warnings in xml on stdout
+ --wrap <path> Wrap output in a set of containers
+ --xml OR -X Generate XML output
+ --xpath Add XPath data to HTML output
diff --git a/tests/xo/saved/xo_02.X.out b/tests/xo/saved/xo_02.X.out
new file mode 100644
index 000000000000..40052cf59b8f
--- /dev/null
+++ b/tests/xo/saved/xo_02.X.out
@@ -0,0 +1 @@
+<a><b><c><state>North Carolina</state><city>Raleigh</city><state>North Carolina</state><city>Raleigh</city></c></b></a><a><b><c><state>North Carolina</state><city>Raleigh</city></c></b></a><a><b><c><state>North Carolina</state><city>Raleigh</city><d><e><f><state>North Carolina</state><city>Raleigh</city></f></e></d><state>North Carolina</state><city>Raleigh</city></c></b></a><a><b><c><state>North Carolina</state><city>Raleigh</city></c></b></a><a><b><c><state>North Carolina</state><city>Raleigh</city></c></b></a><answer><state>North Carolina</state><city>Raleigh</city></answer><top><data><tag>value1</tag><tag>value2</tag></data></top><machine><name>red</name><memory>55</memory></machine><machine><name>green</name><memory>55</memory></machine><machine><name>blue</name><memory>55</memory></machine> \ No newline at end of file
diff --git a/tests/xo/saved/xo_02.XP.err b/tests/xo/saved/xo_02.XP.err
new file mode 100644
index 000000000000..0c348c734898
--- /dev/null
+++ b/tests/xo/saved/xo_02.XP.err
@@ -0,0 +1,25 @@
+Usage: xo [options] format [fields]
+ --close <path> Close tags for the given path
+ --close-instance <name> Close an open instance name
+ --close-list <name> Close an open list name
+ --continuation OR -C Output belongs on same line as previous output
+ --depth <num> Set the depth for pretty printing
+ --help Display this help text
+ --html OR -H Generate HTML output
+ --json OR -J Generate JSON output
+ --leading-xpath <path> OR -l <path> Add a prefix to generated XPaths (HTML)
+ --not-first Indicate this object is not the first (JSON)
+ --open <path> Open tags for the given path
+ --open-instance <name> Open an instance given by name
+ --open-list <name> Open a list given by name
+ --option <opts> -or -O <opts> Give formatting options
+ --pretty OR -p Make 'pretty' output (add indent, newlines)
+ --style <style> OR -s <style> Generate given style (xml, json, text, html)
+ --text OR -T Generate text output (the default style)
+ --top-wrap Generate a top-level object wrapper (JSON)
+ --version Display version information
+ --warn OR -W Display warnings in text on stderr
+ --warn-xml Display warnings in xml on stdout
+ --wrap <path> Wrap output in a set of containers
+ --xml OR -X Generate XML output
+ --xpath Add XPath data to HTML output
diff --git a/tests/xo/saved/xo_02.XP.out b/tests/xo/saved/xo_02.XP.out
new file mode 100644
index 000000000000..6477af08ef1c
--- /dev/null
+++ b/tests/xo/saved/xo_02.XP.out
@@ -0,0 +1,74 @@
+<a>
+ <b>
+ <c>
+ <state>North Carolina</state>
+ <city>Raleigh</city>
+ <state>North Carolina</state>
+ <city>Raleigh</city>
+ </c>
+ </b>
+</a>
+<a>
+ <b>
+ <c>
+ <state>North Carolina</state>
+ <city>Raleigh</city>
+ </c>
+ </b>
+</a>
+<a>
+ <b>
+ <c>
+ <state>North Carolina</state>
+ <city>Raleigh</city>
+ <d>
+ <e>
+ <f>
+ <state>North Carolina</state>
+ <city>Raleigh</city>
+ </f>
+ </e>
+ </d>
+ <state>North Carolina</state>
+ <city>Raleigh</city>
+ </c>
+ </b>
+</a>
+<a>
+ <b>
+ <c>
+ <state>North Carolina</state>
+ <city>Raleigh</city>
+ </c>
+ </b>
+</a>
+<a>
+ <b>
+ <c>
+ <state>North Carolina</state>
+ <city>Raleigh</city>
+ </c>
+ </b>
+</a>
+<answer>
+<state>North Carolina</state>
+<city>Raleigh</city>
+</answer>
+<top>
+ <data>
+ <tag>value1</tag>
+ <tag>value2</tag>
+ </data>
+</top>
+ <machine>
+ <name>red</name>
+ <memory>55</memory>
+ </machine>
+ <machine>
+ <name>green</name>
+ <memory>55</memory>
+ </machine>
+ <machine>
+ <name>blue</name>
+ <memory>55</memory>
+ </machine>