File: data_test.go

package info (click to toggle)
golang-github-clbanning-mxj 2.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,200 kB
  • sloc: xml: 176; makefile: 4
file content (38 lines) | stat: -rw-r--r-- 1,396 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package mxj

var xmldata = []byte(`
<book>
	<author>William H. Gaddis</author>
	<title>The Recognitions</title>
	<review>One of the seminal American novels of the 20th century.</review>
</book>
<book>
	<author>William H. Gaddis</author>
	<title>JR</title>
	<review>Won the National Book Award.</end_tag_error>
</book>
<book>
	<author>Austin Tappan Wright</author>
	<title>Islandia</title>
	<review>An example of earlier 20th century American utopian fiction.</review>
</book>
<book>
	<author>John Hawkes</author>
	<title>The Beetle Leg</title>
	<review>A lyrical novel about the construction of Ft. Peck Dam in Montana.</review>
</book>
<book>
	<author>
		<first_name>T.E.</first_name>
		<last_name>Porter</last_name>
	</author>
	<title>King's Day</title>
	<review>A magical novella.</review>
</book>`)

var jsondata = []byte(`
 {"book":{"author":"William H. Gaddis","review":"One of the great seminal American novels of the 20th century.","title":"The Recognitions"}}
{"book":{"author":"Austin Tappan Wright","review":"An example of earlier 20th century American utopian fiction.","title":"Islandia"}}
{"book":{"author":"John Hawkes","review":"A lyrical novel about the construction of Ft. Peck Dam in Montana.","title":"The Beetle Leg"}}
{"book":{"author":{"first_name":"T.E.","last_name":"Porter"},"review":"A magical novella.","title":"King's Day"}}
{ "here":"we", "put":"in", "an":error }`)