• 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: first stab at generating an XML output
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: first stab at generating an XML output


  • Subject: Re: first stab at generating an XML output
  • From: Geoff Hopson <email@hidden>
  • Date: Thu, 18 Aug 2005 08:10:56 +0100

The simple solution is to build up a StringBuffer and append
away...maybe run it through a parser before you return it to validate
that the XML is at least valid.

The harder solution is to go the full DOM route. At least you get a
'purists chubby' if you go that way :-)

I say go with a StringBuffer. Get it working first. If the XML starts
to get more complex/convoluted, maybe reimplement the method to use
something else.

Geoff

On 18/08/05, WebObjects <email@hidden> wrote:
> I've combed PracticalWO and BuildingWO5, and still feel a little
> directionless.  I have a 3rd party whose software needs to query mine, and
> get the results in .xml format.  Sounds pretty simple.  The simple part is
> getting the request in the form of a direct action.  My problem/question is
> "How do I return the resulting data in the form of .xml?"
>
> Ideally the resulting document should look like:
>
> <?xml version="1.0" encoding="ISO8859-1" ?>
> <statuscheck>
>     <statuscode>12345</ statuscode>
>     <statusdescription>This account is valid</ statusdescription>
> </statuscheck>
>
> Thanks for any guidance,
>
> -Bill
>
>
>
>  _______________________________________________
> 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
>
 _______________________________________________
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

  • Follow-Ups:
    • Re: first stab at generating an XML output
      • From: Dov Rosenberg <email@hidden>
References: 
 >first stab at generating an XML output (From: WebObjects <email@hidden>)

  • Prev by Date: first stab at generating an XML output
  • Next by Date: Re: [Newbie] -> how to reference static files (css, images, etc)?
  • Previous by thread: first stab at generating an XML output
  • Next by thread: Re: first stab at generating an XML output
  • Index(es):
    • Date
    • Thread