Hi,
I had a similar problem and solved it in the rather unpleasant way of
replacing my new lines with entities. Like this:
# Name of Resource%#10;
Name=test01%#10; # FCCN of Connector%#10;
Connector=com.attachmate.connectors.xatest.XATestConnector%#10;
# Task file to open%#10; TaskFile=abc
Whatever I was doing also didn't allow any spaces, but I think toby's code
will.
Obviously if the CDATA works that is better.
david jencks
On 2001.05.16 19:33:22 -0400 Toby Allsopp wrote:
> On Wed, May 16, 2001 at 03:24:56PM -0700, Jacob Barrett wrote:
> > Okay, does this help any? The "'" (single quote) marks the start and
> stop
> > of the actual string. This is the log dump snippet...
> >
> > [Default] before trim: ' # Name of Resource
> > Name=test01 # FCCN of Connector
> > Connector=com.attachmate.connectors.xatest.XATestConnector
> > # Task file to open TaskFile=abc '
>
> Bugger. So the line breaks are getting stripped by the XML parser.
>
> Maybe someone who knows about XML parsing can shed some light on this?
>
> Try putting your properties in a CDATA element, something like:
>
> <attribute name="Properties"><!CDATA[[
> # Foo
> bar=baz
> ]]></attribute>
>
> You might want to look up the actual syntax for CDATA because I'm not
> sure
> I've remembered it correctly.
>
> Toby.
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user