The name "a/'b/a" is invalid as there is no closing quote for the ' character.
The name "a/'a/b/b" is invalid as there is no closing quote for the ' character.
The name "a/\"b/a" is interpreted as a/"b/a and is invalid as there is no closing quote for the embedded escaped " character.
The name "a/'b/c'/a" has 3 elements. The middle element is b/c.
The name "a/a'a/b'/b" has 4 elements: Element 0 is "a". Element 1 is "a'a". Element 2 is "b'". Element 3 is "b".
Interestingly the name "a/a'a/b/b" is valid and has 4 elements. This is beacuse the single quote char ' is not a leading quote and is embedded in an element so is treated as a character. Element 0 is "a". Element 1 is "a'a". Element 2 is "b". Element 3 is "b".
The name "\"abcd" gives an InvalidNameException
as there is no closing quote.
The name "'\"abcd'" gives one element of value "abcd.
The name "\\abcd" gives one element of value \abcd.
"" is empty. It has no elements. "/" has one empty element. "//" has 2 empty elements. "/a/" has 3 elements the middle one is set to a. "///" has 3 empty elements. "//a/" has 4 elements, the last but one is set to a.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|