[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] FW: MSXML: New document built has only one line.
I think this was meant for the entire list... J. Keith Wedinger Senior Software Developer Sterling Commerce keith_wedinger@s... -----Original Message----- From: Benoit BARRE [mailto:benoit.barre@t...] Sent: Friday, March 02, 2001 11:43 AM To: Wedinger, Keith Subject: RE: MSXML: New document built has only one line. Or simply use a very simple style sheet. HTH Benoît -----Original Message----- From: Wedinger, Keith [mailto:Keith_Wedinger@s...] Sent: vendredi 2 mars 2001 17:22 To: Xml-Dev (E-mail) Subject: RE: MSXML: New document built has only one line. DOM does not directly allow the serialization via save of "pretty" XML documents. One possible solution is to write your own save function that iterates through the DOM tree outputting each item while inserting tabs/spaces/LFs as needed. There are plenty of samples available that show how to iterate through the entire DOM tree. The save function provided by DOMDocument probably does something very similar to this. If you were using a SAX parser, then you would need to write a ContentHandler to output the XML as you see fit. HTH. J. Keith Wedinger Senior Software Developer Sterling Commerce keith_wedinger@s... -----Original Message----- From: christine.coisy@m... [mailto:christine.coisy@m...] Sent: Friday, March 02, 2001 10:16 AM To: xml-dev@l... Subject: MSXML: New document built has only one line. Hello, I'm using MSXML 3.0 and after the creation of a new document (with creation of nodes, insertion, append, etc... and a save) the file generated has only one line without LF or CR. Some editors allow visualizing correctly the files but these files are for clients which want to be free to edit them with text editor. Could you help me ? Thanks. Christine. ------------------------------------------------------------------ The xml-dev list is sponsored by XML.org, an initiative of OASIS <http://www.oasis-open.org> The list archives are at http://lists.xml.org/archives/xml-dev/ To unsubscribe from this elist send a message with the single word "unsubscribe" in the body to: xml-dev-request@l... ------------------------------------------------------------------ The xml-dev list is sponsored by XML.org, an initiative of OASIS <http://www.oasis-open.org> The list archives are at http://lists.xml.org/archives/xml-dev/ To unsubscribe from this elist send a message with the single word "unsubscribe" in the body to: xml-dev-request@l...
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|