Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old December 21st, 2006, 01:05 PM
kitty
Guest
 
Posts: n/a
Default converting XML values into String using Carbon

Hi,
Iam using the Carbon framework to read data from XML files, but it does
not read values placed inside curly braces {}.
Example:
<output>{property}</output>
I have tried using numeric character reference
<output>&#x7B;property&#x7D;</output>
but it still gives InvalidConfiguration Error. The stacktrace is:
Value {property} cannot be formatted to java.lang.String.

Any help is appreciated.

Thanks,
Kitty

  #2  
Old December 23rd, 2006, 05:05 PM
Joe Kesselman
Guest
 
Posts: n/a
Default Re: converting XML values into String using Carbon

I'm not at all familiar with Carbon, but that sounds like Carbon is
giving special meaning to values enclosed in curly braces. Check its
documentation. You may have to tell it not to do so... or switch tools.

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
  #3  
Old December 26th, 2006, 07:15 AM
kitty
Guest
 
Posts: n/a
Default Re: converting XML values into String using Carbon

Hi joe,

Thanks for your reply,
I have a general doubt , Can XML have values which have curly braces or
does it treat them as a placeholder for some java parameter ?
Carbon treats it as an invalid configuration, that means it cannot
convert any value with curly braces into String value.

Thanks again,
kitty

  #4  
Old January 7th, 2007, 10:15 PM
Joe Kesselman
Guest
 
Posts: n/a
Default Re: converting XML values into String using Carbon

Answered in other thread: Not a problem for XML, may have meaning to
specific tools.
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles