--- &test-JHB9
Title: Spec Example 2.7. Two Documents in a Stream
Tags: [ header, spec ]
# Ranking of 1998 home runs
---
- Mark McGwire
- Sammy Sosa
- Ken Griffey
# Team ranking
---
- Chicago Cubs
- St Louis Cardinals
+STR
+DOC ---
+SEQ
=VAL :Mark McGwire
=VAL :Sammy Sosa
=VAL :Ken Griffey
-SEQ
-DOC
+DOC ---
+SEQ
=VAL :Chicago Cubs
=VAL :St Louis Cardinals
-SEQ
-DOC
-STR
[
"Mark McGwire",
"Sammy Sosa",
"Ken Griffey"
]
[
"Chicago Cubs",
"St Louis Cardinals"
]
error
Unhandled exception. YamlDotNet.Core.YamlException: (Line: 8, Col: 1, Idx: 90) - (Line: 8, Col: 4, Idx: 93): Expected 'StreamEnd', got 'DocumentStart' (at Line: 8, Col: 1, Idx: 90).
at YamlDotNet.Core.ParserExtensions.Require[T](IParser parser)
at YamlDotNet.Core.ParserExtensions.Consume[T](IParser parser)
at YamlDotNet.Serialization.Deserializer.Deserialize(IParser parser, Type type)
at YamlDotNet.Serialization.Deserializer.Deserialize(TextReader input, Type type)
at YamlDotNet.Serialization.Deserializer.Deserialize(TextReader input)
at Program.Main(String[] commandLineArguments)
Aborted (core dumped)
na
Line Col Char Byte Token|Content
1 0 0 0 +COMM|
1 0 0 0 =SYNX|#
1 1 1 1 =META|.Ranking.of.1998.home.runs
1 27 27 27 -COMM|
1 27 27 27 =EOL |\x0a
2 0 28 28 +DOC |
2 0 28 28 =HEAD|---
2 3 31 31 +NODE|
2 3 31 31 =EOL |\x0a
3 0 32 32 +SEQ |
3 0 32 32 =SYNX|-
3 1 33 33 =WSPC|.
3 2 34 34 +NODE|
3 2 34 34 +VAL |
3 2 34 34 =TEXT|Mark.McGwire
3 14 46 46 -VAL |
3 14 46 46 -NODE|
3 14 46 46 =EOL |\x0a
4 0 47 47 =SYNX|-
4 1 48 48 =WSPC|.
4 2 49 49 +NODE|
4 2 49 49 +VAL |
4 2 49 49 =TEXT|Sammy.Sosa
4 12 59 59 -VAL |
4 12 59 59 -NODE|
4 12 59 59 =EOL |\x0a
5 0 60 60 =SYNX|-
5 1 61 61 =WSPC|.
5 2 62 62 +NODE|
5 2 62 62 +VAL |
5 2 62 62 =TEXT|Ken.Griffey
5 13 73 73 -VAL |
5 13 73 73 -NODE|
5 13 73 73 =EOL |\x0a
6 0 74 74 =EOL |\x0a
7 0 75 75 +COMM|
7 0 75 75 =SYNX|#
7 1 76 76 =META|.Team.ranking
7 14 89 89 -COMM|
7 14 89 89 =EOL |\x0a
8 0 90 90 -SEQ |
8 0 90 90 -NODE|
8 0 90 90 -DOC |
8 0 90 90 +DOC |
8 0 90 90 =HEAD|---
8 3 93 93 +NODE|
8 3 93 93 =EOL |\x0a
9 0 94 94 +SEQ |
9 0 94 94 =SYNX|-
9 1 95 95 =WSPC|.
9 2 96 96 +NODE|
9 2 96 96 +VAL |
9 2 96 96 =TEXT|Chicago.Cubs
9 14 108 108 -VAL |
9 14 108 108 -NODE|
9 14 108 108 =EOL |\x0a
10 0 109 109 =SYNX|-
10 1 110 110 =WSPC|.
10 2 111 111 +NODE|
10 2 111 111 +VAL |
10 2 111 111 =TEXT|St.Louis.Cardinals
10 20 129 129 -VAL |
10 20 129 129 -NODE|
10 20 129 129 =EOL |\x0a
11 0 130 130 -SEQ |
11 0 130 130 -NODE|
11 0 130 130 -DOC |
na
[
'Mark McGwire',
'Sammy Sosa',
'Ken Griffey'
]
[
'Chicago Cubs',
'St Louis Cardinals'
]
na
[
'Mark McGwire',
'Sammy Sosa',
'Ken Griffey'
]
[
'Chicago Cubs',
'St Louis Cardinals'
]
na
[
'Mark McGwire',
'Sammy Sosa',
'Ken Griffey'
]
[
'Chicago Cubs',
'St Louis Cardinals'
]
na
[
'Mark McGwire',
'Sammy Sosa',
'Ken Griffey'
]
[
'Chicago Cubs',
'St Louis Cardinals'
]
na
[
'Mark McGwire',
'Sammy Sosa',
'Ken Griffey'
]
[
'Chicago Cubs',
'St Louis Cardinals'
]
na
[
'Mark McGwire',
'Sammy Sosa',
'Ken Griffey'
]
[
'Chicago Cubs',
'St Louis Cardinals'
]
na
['Mark McGwire', 'Sammy Sosa', 'Ken Griffey']
['Chicago Cubs', 'St Louis Cardinals']
na
['Mark McGwire', 'Sammy Sosa', 'Ken Griffey']
['Chicago Cubs', 'St Louis Cardinals']