[ACCEPTED]-Can a XML element contain text and child elements at the same time?-xml-parsing

Accepted answer
Score: 48

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.

Score: 10

Yes. It's called "mixed content".

0

More Related questions