Just suggestions: At first place I won't use WO components to generate XML. If there is no other choice, I would prefer <wo:XMLNode . This issue you got might be one of the reason that's why XMLNode element is available as part of the framework.
To generate XML, you can use a directAction that generates a WOResponse. The first thing you would like to do is to set the header content-type to text/xml so the consumer end could understand and assume it a proper xml. Another thing you can do is to have javabeans/entities annotated with @XmlElement / @XmlRootElement and use marshaller to generate required response. Farrukh On 2010-06-16, at 7:09 PM, Hugi Thordarson wrote: > Yup, that's the case. Every tag that starts with "wo" fails. > > Dang, that's awesomely lame. > > - hugi > > > > On 16.6.2010, at 13:44, Chuck Hill wrote: > >> My guess is lazy / buggy parsing for tags like <wo:str...> It just looks >> for <wo ? >> >> Chuck >> >> >> On Jun 16, 2010, at 5:03 AM, Hugi Thordarson wrote: >> >>> Good morning everyone. >>> >>> I have a bit of an odd problem. I'm creating an XML-document .wo. One of >>> the tags in the XML is called "workingpr". Now. When the WO template parser >>> encounters this xml-tag in the html, it attempts to parse it as a >>> <webobject> tag, giving me the error: >>> >>> Error: >>> com.webobjects.foundation.NSForwardException >>> [com.webobjects.appserver.parser.WOHTMLFormatException] . It has no >>> NAME=... parameter: . It has no NAME=... parameter >>> >>> Reason: >>> <WOHTMLWebObjectTag cannot initialize WebObject tag <workingpr> . It has no >>> NAME=... parameter >>> >>> This is reproducible across the board, in other projects. >>> >>> I can work around the problem by using a WOXMLNode, of course, but I'm >>> still curious. >>> >>> So, does anyone have *any* idea how and why this happens? >>> >>> I kiss you, >>> - hugi _______________________________________________ >>> 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/chill%40global-village.net >>> >>> This email sent to [email protected] >> >> -- >> Chuck Hill Senior Consultant / VP Development >> >> Practical WebObjects - for developers who want to increase their overall >> knowledge of WebObjects or who are trying to solve specific problems. >> http://www.global-village.net/products/practical_webobjects >> >> >> >> >> >> >> > > _______________________________________________ > 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/farrukh.ijaz%40fuegodigitalmedia.com > > This email sent to [email protected] _______________________________________________ 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]
