• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: File Download
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File Download


  • Subject: Re: File Download
  • From: "Daniele Corti" <email@hidden>
  • Date: Mon, 23 Jul 2007 18:08:09 +0200



2007/7/23, WILLIAM GARNETT <email@hidden>:
Hello everyone;



I need to make an XML file from my online database and be able to download
it and have it saved on the user's disk. Can anyone tell me how this can be
done please?

Hi Bill,
Look to create and manipulate XML in java, you have many approach, personally I prefer DOM, because it's the same of _javascript_. then use JAXP to create the file!

http://java.sun.com/webservices/jaxp/

To make the user download it... you can give the XML as Response, setting the header type=text/xml, but Safari and Firefox display the result  (or better, Safari give the content of each tag in a single line, firefox give a navigable tree), so to save it you need to press File>>Save. IE i don't remember what it does, sorry :-)

A little advice, if what you need is a backup for the db, there's different ways of an XML file.


P.S. maybe you want to do something like an RSS, but look, I think in Project Wonder there's an easy way to do this, have a look at it!

Cheers,

Bill.


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription: email@hidden



--
Daniele Corti
AIM: S0CR4TE5
Messenger: email@hidden

--
Computers are like air conditioners -- they stop working properly if you open
WINDOWS

--
What about the four lusers of the apocalypse? I nominate:
"advertising", "can't log in", "power switch" and "what backup?"
--Alistair Young
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >File Download (From: "WILLIAM GARNETT" <email@hidden>)

  • Prev by Date: Re: Form values in URL?
  • Next by Date: Re: Ajax problem with Wonder 4.0
  • Previous by thread: File Download
  • Next by thread: Need some help with fckeditor
  • Index(es):
    • Date
    • Thread