What steps will reproduce the problem?
1. Load document with more than one root element.
2.
3.
What is the expected output? What do you see instead?
Going throw an exception.
What version of the product are you using? On what operating system?
latest at 2009 Jan 14th.
Please provide any additional information below.
According to the w3c specifications about a well formed document, one can see
that:
"[Definition: There is exactly one element, called the root, or document
element, no part of which
appears in the content of any other element.] For all other elements, if the
start-tag is in the
content of another element, the end-tag is in the content of the same element.
More simply
stated, the elements, delimited by start- and end-tags, nest properly within
each other.
[Definition: As a consequence of this, for each non-root element C in the
document, there is one
other element P in the document such that C is in the content of P, but is not
in the content of
any other element that is in the content of P. P is referred to as the parent
of C, and C as a child
of P.]"
It's clear that the root element must be unique. The current version of ticpp
is parsing
documents that have more than one root element.
Original issue reported on code.google.com by tnnogue...@gmail.com on 15 Jan 2009 at 3:56
Original issue reported on code.google.com by
tnnogue...@gmail.com
on 15 Jan 2009 at 3:56