[ACCEPTED]-Can a XML element contain text and child elements at the same time?-xml-parsing
Accepted answer
Yes. A parent node contains zero or more 8 child nodes. Text nodes and element nodes 7 are two kinds of nodes and an element node 6 can have any number of text and/or element 5 child nodes in any order. Schemas might 4 restrict this, though. In fact, the whitespace 3 between element nodes actually forms text 2 node siblings. Usually this whitespace is 1 ignored, though.
Yes. It's called "mixed content".
0
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.