Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XML
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 16th, 2005, 03:54 AM
Registered User
 
Join Date: Mar 2005
Location: , , .
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

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 08:59 AM.


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