Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 16th, 2005, 03:54 AM
Registered User
 
Join Date: Mar 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Newline character problem

If i load following input XML into a MSXML2 DOM document and then try to save the <Root Node>.text into a file then it's replacing normal NewLine characters with some special unicode charatcer(newline).If the file is opened in notepad this character is shown as rectangular box.

Can somebody suggest on how to replace/omit this special unicode character in output?

Input XML(Filename : NewLine.xml)
------------------------------
<root>
1,2,3
5,6,7
</root>

VB Code to Save to a file
-------------------------

Private Sub Command1_Click()
On Error Resume Next

Dim xmlDom As New MSXML2.DOMDocument30

xmlDom.Load "C:\NewLine.xml"

Open "C:\NewLine.txt" For Output As 1
Print #1, , xmlDom.childNodes(0).Text
'Print #1, , xmlDom.childNodes(0).nodeTypedValue

Close #1
MsgBox "File Generated"
End Sub






Similar Threads
Thread Thread Starter Forum Replies Last Post
save .csv with newline character sansircar ASP.NET 1.0 and 1.1 Professional 1 November 19th, 2008 03:50 AM
character set problem BrendonMelville Java Basics 1 March 15th, 2007 12:16 PM
Problem with Newline character d_sathish XSLT 3 November 25th, 2005 07:20 PM
newline and tab characters problem anshul Beginning PHP 1 December 2nd, 2004 06:58 AM
HELP!!! the problem of handling special character kemin Classic ASP Databases 1 December 13th, 2003 01:31 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.