• 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: Wanting to return an .XML document for a direct action
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wanting to return an .XML document for a direct action


  • Subject: Re: Wanting to return an .XML document for a direct action
  • From: LD <email@hidden>
  • Date: Tue, 4 Oct 2005 11:26:09 +1000

Hi there,

On 03/10/2005, at 8:35 PM, Greg wrote:

You'll also want to override appendToResponse to set the content type to text/xml

public void appendToResponse(WOResponse response, WOContext context) {
    super.appendToResponse(response, context);
    response.setHeader("text/xml"), "content-type");
}

What's the standard practice with creating valid XML strings. e.g., ' --> &apos; etc


with regards,
--

LD


_______________________________________________ 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: 
 >Wanting to return an .XML document for a direct action (From: WebObjects <email@hidden>)
 >Re: Wanting to return an .XML document for a direct action (From: Blue Moon <email@hidden>)
 >Re: Wanting to return an .XML document for a direct action (From: Greg <email@hidden>)

  • Prev by Date: wacky EOF prefetching and flattened relationships
  • Next by Date: deleteSelection sets relationship null rather than deleting
  • Previous by thread: Re: Wanting to return an .XML document for a direct action
  • Next by thread: Re: Wanting to return an .XML document for a direct action
  • Index(es):
    • Date
    • Thread