[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.

  • From: "Wedinger, Keith" <Keith_Wedinger@s...>
  • To: "Xml-Dev (E-mail)" <xml-dev@l...>
  • Date: Fri, 02 Mar 2001 11:52:31 -0500

msxml 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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.