Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Qutation mark problem

Status
Not open for further replies.

shaygan

Programmer
Feb 19, 2005
12
DE
hello,

i try to write this line <?xml version=“1.0“> to a file:
...............
Set objTextStream = objFs.CreateTextFile(filename, True)
objTextStream.WriteLine (" <?xml version=" 1.0" “)
................

but because of qutation mark i get Error!

I ‚ m thankful for a hint
 
I'm assuming that you need the external quotation marks because of the .writeline method. So you could use one of two other methods for the internal quotes.
Code:
objTextStream.WriteLine (" <?xml version="" 1.0""   ")
or
Code:
objTextStream.WriteLine (" <?xml version=' 1.0'   ")



------------------------------------------------------------------------------------------------------------------------
If you don't have a sense of humor, you probably don't have any sense at all.
- Anonymous
 
So does that mean that it worked? (I'm a little slow sometimes... :))

------------------------------------------------------------------------------------------------------------------------
If you don't have a sense of humor, you probably don't have any sense at all.
- Anonymous
 
with xml strings yopu don't have to include the ".


I have xml that works perfectly well without

ie

Code:
objTextStream.WriteLine (" <?xml version=1.0 ?>")
 
I have a very simple access database running for one of my pages that sends the dateposted to a .asp page. Here's the deal.. In access the dates are sorted in ascending order, but in the .asp page instead of the dates showing in the order as seen in access the dates are completely out of order.
ie.
2/1/05
2/10/05
2/2/05
2/23/05
2/4/05

Im not exactly where I went wrong in the show statment, but I really want to get this fixed.. Any suggestions?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top