> I can download tamplate by:
>
> $ curl $(CURL_FLAGS) \
> --header "Authorization: GoogleLogin auth="`cat login-auth.txt` \
> --header "GData-Version: 2" \
> http://www.blogger.com/feeds/2689659750631752910/template
>
> >template.atom
>
> Then I make XPath query:
>
> $ xpath template.atom '/feed/entry/content/text()'
> Found 1 nodes:
> -- NODE --
> <?xml version="1.0" encoding="UTF-8" ?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <html expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml'xmlns:b='http://www.google.com/2005/gml/b'
> xmlns:data='http://www.google.com/2005/gml/data'xmlns:expr='http://www.google.com/2005/gml/expr'>
> .... .... ....
>
> Then I unescape output:
>
> $ xpath $(WEB_DIR)/template.atom '/feed/entry/content/text()' \
> | sed -e 's=<=<=g' -e 's=>=>=g' -e 's=&=\&=g'
>
> >template.xml
>
> Finally I get same as by clicking "Download Full Template" on Blogger
> Design==>Edit HTML page.
>
> But I have trouble when try upload template in this way.
>
Finaly I got it work!
Check http://code.google.com/p/brain-break-blog project.
--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.
No comments:
Post a Comment