



Hi Whats the easiest way to make Castor marshal a given string field toCData ?i.e. givenclass A {String b = "<test></test>";}marshalling would produce something along these lines<A><b><![CDATA[<test></test>]]></b></A>ThanksLiam Knox Morg...
I'm using castor-1.0M1. It is creating all simple types as java.lang.Object--View this message in context: http://www.nabble.com/Why-are-all-s...0.html#a2425837Sent from the Castor - User forum at Nabble.com....
Given this XML:<DocRoot><Person><name>Rick</name><age>27</age><CollectionOfThings><Item><ItemProp>This is an itemproperty</ItemProp></Item><Item><ItemProp>This is an itemproperty</ItemProp></Item><Item&g...
Hi all,For string containing special characters, mapping file tries to escapethose characters .But I m getting string which is already inside CDATA.So how do I set that mapping file would know, that string alreadycontains in CDATA.RegardsAlok KumarSymphony Services Pvt Ltd.Direct Line: 080-5133-...
Hi,I am experimenting with castor and want to marshall a object of classDefaultMutableTreeNode from Swing. When I marshall the object, it seemsthat all node with childs are marshalled correctly. But theunmarshalling doesn't function. The root node is null. Is there apossiblity to marshall D...
We have a class called CallObject and it contains one member variablewhose type can change. We want to be able to have The CallObject containan Object and have Castor serialize it appropriately based on the classof the object.In other words, we want a class like this:Public class CallObject{...
Hi,A field mapping similar to=20<field name=3D"object" type=3D"java.lang.Object" =collection=3D"collection"><bind-xml auto-naming=3D"deriveByClass"></bind-xml></field>should do the trick in your case. Have a look at =http://castor.codehaus.org/xml-mapping.html#5.-xsi:type...
Thanks Stephen. That worked.=20--Original Message--=46rom: Stephen Bash [mailto:bash@ll.mit.edu]=20Sent: Wednesday, January 18, 2006 9:18 AMTo: user@castor.codehaus.orgSubject: Re: [castor-user] [XML] How to add a list to an object withoutusing a 'Collection' intermediate objectRick-It...
Stephen,Thanks for investigating this. You are right in that searchInheritance =should be a bit more relaxed (or rewritten as you suggested to allow for =a second search algorithm) ... Especially as there's another bug out =there raised by Cocoon folks that seems to be complaining about the...
Werner, I am using packages. These are just examples to make the testcase =understandable.=20--Original Message--=46rom: Werner Guttmann [mailto:W.Guttmann@betandwin.com]=20Sent: Wednesday, January 18, 2006 9:45 AMTo: user@castor.codehaus.orgSubject: RE: [castor-user] [XML] Any way to have Casto...
Yes, this is my mapping xml now:<class name=3D"CallObject"><map-to xml=3D"CallObject" /><field name=3D"object" type=3D"java.lang.Object"><bind-xml auto-naming=3D"deriveByClass" /></field>=09</class><class name=3D"ThisClass"><map-to xml=3D"ThisClass"/&...
Thanks! That works great for marshalling the XML.Unmarshalling is getting an error though:org.xml.sax.SAXException: unable to find FieldDescriptor for 'ThisClass' in==ClassDescriptor of CallObjectat =org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:1=933)at =or...
