作者:小辉0110_737 | 来源:互联网 | 2023-05-18 02:01
Iwasreadinganebookandithasfollowingxmlcode.我正在阅读一本电子书,它有以下xml代码。<?xmlversion1.0?
I was reading an ebook and it has following xml code.
我正在阅读一本电子书,它有以下xml代码。
]>
Shakespeare
William
British
1564
1616
My mistress' eyes are nothing like the sun,
Coral is far more red than her lips red.
If snow be white, why then her breasts are dun,
If hairs be wires, black wires grow on her head.
I have seen roses damasked, red and white,
But no such roses see I in her cheeks.
And in some perfumes is there more delight
Than in the breath that from my mistress reeks.
I love to hear her speak, yet well I know
That music hath a far more pleasing sound.
I grant I never saw a goddess go,
My mistress when she walks, treads on the ground.
And yet, by Heaven, I think my love as rare
As any she belied with false compare.
problem is when I continue the rest of the reading I thought I have misunderstand what root element is. According to my knoweledge root node is
node.
问题是,当我继续阅读其余部分时,我认为我误解了根元素是什么。根据我的知识,根节点是
节点。
But in the book I find next this
但在书中,我发现了下一个
Unlike other nodes, the root node has no parent. It always has at least one child, the document element. The root node also contains comments or processing instructions that are outside the document element. In our sample document, the two processing instructions named xmlstylesheet and cocoon-process are both children of the root node, as are the comment that appears before the tag and the comment that appears after the tag.
与其他节点不同,根节点没有父节点。它始终至少有一个子元素,即文档元素。根节点还包含文档元素之外的注释或处理指令。在我们的示例文档中,名为xmlstylesheet和cocoon-process的两个处理指令都是根节点的子节点,标记之前显示的注释和标记之后显示的注释也是如此。
accordning to that whole document is considered as root. If so what is ? It is clear that processing instructions and comments are not child of node.
根据整个文件被视为根。如果是的话是什么?很明显,处理指令和注释不是节点的子节点。
do I minunderstand?
我最小化吗?
UPdate
更新
Vegetable
Fruits
other
what is the root element here? isnt it food?
这里的根元素是什么?不是食物吗?
1 个解决方案