Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How is white space handled in the XML object model?

handled model object white XML
0
Posted

How is white space handled in the XML object model?

0

Sometimes the XML Object Model will show TEXT nodes containing white space characters. This can be confusing when most of the time white space is stripped. For example the following XML example: ]> Smith John Generates the following tree: Processing Instruction: xml DocType: person ELEMENT: person TEXT: ELEMENT: lastname TEXT: ELEMENT: firstname TEXT: The first name and last name are surrounded by TEXT nodes containing only white space because the content model for the “person” element is MIXED; it contains the #PCDATA keyword. A MIXED content model indicates that the elements can have text interspersed between them. Therefore, the following is also valid: My last name is Smith and my first name is John And this re

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123