l am writing XML to a file.

Everything works fine, however if l view the XML source the first line is always indented.

Cant seem to figure out the cause.

Thankx in advance for the help

when you call your 'write' function, call trim() around the text you are sending. make sure your not sending something like \t (which is a tab character) and would be interpreted by your browser as such. can't help much if there is no code to look at.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.