![]() |
|
|
|||||||
![]() |
XML - Endline Character in XML Attribute |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Hi,
I want to use end line character('\n') in the XML Attribute like <message confirm=" This will kill your process . \n Are you sure to proceeed? "/> But in java xml processor, it is considered as two characters "\" and "n". I used the xml encoding type as "ISO-8859-1". Pls any one help me on it ? Thanks, Ravi. Ravi |
|
|
|
|
#2 |
|
Posts: n/a
|
In article < .com>,
Ravi <> wrote: >I want to use end line character('\n') in the XML Attribute The \n syntax is just something that some programming languages like C and Java use. In XML you can use a character reference: . ><message confirm=" This will kill your process . \n Are you sure to >proceeed? "/> Generally I wouldn't recommend using an attribute for messages. Why not use something like <message>This will kill your process. Are you sure to proceeed?</message> -- Richard |
|