Welcome to WebmasterWorld Guest from 54.144.79.200

Forum Moderators: httpwebwitch

Message Too Old, No Replies

problem with xml created with asp

xml with asp

     

rezalik

1:03 pm on Jun 23, 2008 (gmt 0)

5+ Year Member



Hello all,

I have a asp file, which creates a xml file as output.
Everything is ok, but when I try to evaluate my xml, it seems to have extra characters in it. When I open the xml file with frontpage, and save it, the file size reduces very much but the look and content does not change, and then it evaluates ok.

The xml file is unicode and it is a rss xml file.

anyone has any ideas? the code is very basic and simple in VB.

help is appreciated

Rezalik

cmarshall

1:37 pm on Jun 23, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Don't know diddly about ASP, but it's pretty obvious that your file is being saved with hidden characters. It could be as simple as using \r\n line endings, when you should be using \n. I don't know anything about your environment, but this should give you something to look at.

Examine the file with a hex editor, and look for unwanted guests.

rezalik

2:04 pm on Jun 23, 2008 (gmt 0)

5+ Year Member



thanks for comment, can you please help me with a hex editor? I am not familiar with them.
Thanks

cmarshall

2:35 pm on Jun 23, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That is any program that examines the file in a binary format.

I'm a Mac user, so I can't give any recommendations for Windows software.

I recommend that you Google "Hex Editor."

By the way, welcome to WebmasterWorld!

rezalik

9:08 am on Jun 24, 2008 (gmt 0)

5+ Year Member



will search. Thanks. But the main problem is where does these extra characters come from and what makes reader programs and sites to find my file with extra characters? what happens when I save it with MS frontpage?
Seems like I have to search on the net myself :-(

Thanks again for your help and comments
Rezalik

 

Featured Threads

Hot Threads This Week

Hot Threads This Month