Here's my understanding: These come from the XML schema, if it specifies any default values. The createElement function adds them because the elements are new; i.e. the DOM parser did not put them into the tree, you did.
HTH! Matt -----Original Message----- From: Marcus Mohr [mailto:[EMAIL PROTECTED] Sent: Thursday, May 12, 2005 6:46 AM To: [email protected] Subject: Question concerning DOMDocument::createElement() Hi, I have a (probably trivial) question concerning the createElement method of the DOMDocment class. Its documentation says that "In addition, if there are known attributes with default values, DOMAttr nodes representing them are automatically created and attached to the element." Now where should such information on attributes' default values come from? My initial assumption was, that if the DOMDocument was generated by a validating XercesDOMParser then such information should be available from the schema/validation process. However, this does not seem to be the case. Am I misinterpreting something? Regards Marcus ___________________________________________________________________ The information contained in this message and any attachment may be proprietary, confidential, and privileged or subject to the work product doctrine and thus protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify me immediately by replying to this message and deleting it and all copies and backups thereof. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
