Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Save XML file?

I have a blog on Blogger http://www.enduringepilepsy.com that I want to design my own template for. I'm fairly familiar with HTML and CSS, and I've been working on the code for a few days.


The problem: Blogger will only upload an XML file. And if you copy and paste the HTML into the Blogger editor, Blogger gives errors.


I've been writing the theme in a program called TextWrangler, which is nice because it numbers the code lines and colors it as you type. http://http://www.barebones.com/products/textwrangler/ However, although you can save the file in TextWrangler as XML, its only showing in Finder as a TXT; so it won't upload.


This problem is making it that I can't see the progress of my work and wouldn't be able to use the final theme.


Can anyone tell me how to save an XML file on my MacBook? *I'm running Mountain Lion 10.8.4

MacBook Pro, OS X Mountain Lion, Early 2011

Posted on Sep 15, 2013 3:27 PM

Reply
6 replies

Sep 15, 2013 8:09 PM in response to andyBall_uk

Blogger kicks it back giving parse errors about the code, usually for the open/close of HTML tags; which is part of what led me to believe it was the file. Also because my other XML files (downloaded back-ups) look like this in Finder:


User uploaded file

Being that it was showing up differently, and errors, I thought it was a problem saving as XML.


If the first image is how your TextWrangler files appear - a few questions:


do you use yours on Blogger? can you view the code by dragging to a browser? have you been able to upload anywhere without a problem?


I've even just edited my old template, which was a downloaded free template, but if I save it can't upload - so I'm really stumped by this 😕

Sep 16, 2013 8:43 AM in response to pghkatrina

I can edit in TW & upload sucessfully, regardless of the file extension - anything can be selected & uploaded, regardless of type/extension - but of course the content has to be right, which is what seems to be failing for you.


You can download a template, then upload it successfully if you don't edit ?, it's just saving in TW that causes problems, right ?.


I'd reset TW's preferences to default & test again with a new download. If it still fails - get another copy,make no change but save as..., then try that one & double check the size/content in Finder.

Save XML file?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.