2007/7/23, WILLIAM GARNETT <[EMAIL PROTECTED]>:
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 protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/ildenae%40gmail.com This email sent to [EMAIL PROTECTED]
-- Daniele Corti AIM: S0CR4TE5 Messenger: [EMAIL PROTECTED] -- 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 protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
