Understanding DOM Node Types in JavaScript (With Examples!)
The Document Object Model (DOM) provides a structured tree representation of HTML and XML documents, with each node possessing a nodeType property that defines its type.
When defining XML with XSD, the optional configuration can be set using the minOccurs="0" attribute to indicate that the element may not appear in the document.