Hi Craig, Thank you for the explanation. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig Bennett Sent: Tuesday, September 28, 2004 3:55 PM To: [EMAIL PROTECTED] Subject: Re: [U2] XML DOM Help
> <SUBJECT></SUBJECT> > <SUBJECT/> <--- PROBLEM HERE > > Why the <SUBJECT> line got messed up after the write? Any idea? Hi Rajesh, XML is read, the string gets parsed into a DOM structure. When the XML is written, the string representation will be created from the DOM. Although you can have empty elements in XML like <X></X> the more compact way to represent this is with <X/> (which means an X element with no content). So the XML is changing because the XML written is generated fresh from the data structures from the DOM, which does not use the string representation expect when outputing XML. HTH, Craig ------- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/
