r1 - 16 Jul 2007 - 01:47:10 - ZacSim?You are here: TWiki >  Main Web  >  ElixirReport > ElixirReportCookbook > LineFeedIntoAnXMLAttribute

Linefeed Into An XML Attribute

By default, XML attributes do not allow linefeed. This is an XML feature called "attribute value normalization". This is a built-in XML specification that is a default setting and cannot be changed.

There are two alternative solutions -

1) A solution is to add a linefeed into an attribute value is to use "&10" into the required source code (An example is shown in original.zip).

- original.zip sample contains 3 files including the ds, rml & xml files that present the usage of "&10".

2) A better solution is to set the specific value as an element content (An example is shown in modified.zip)

- modified.zip sample contains 3 files including the ds, rml & xml files that present the usage of element content.

Sample of original.zip

Sample of modified.zip

-- ZacSim? - 16 Jul 2007

Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback