Skip to main content
Legend
May 14, 2008 6:42 AM UTC
Question

how to avoid closing up lines

Hey, this structured stuff is serious fun! and I now have just one challenge left with my first serious xml-to-Frame project: code examples.

In the source, these are tagged as follows, though with the opening [code] tag on a line by itself:

>

sFmisThemeName = "deur"
sFmisTableName = "door_CAD"
' Table name for doors
sFmisTableBid = "building_id"
sFmisTableFid = "floor_char"
sFmisTableID = "ID"
SELECT Bid=sFmisTableBid, F=sFmisTableFid, ID=sFmisTableID, type
FROM sFmisTableName
WHERE sFmisTableBid=sBID
AND sFmisTableFid=sFID


When I open the xml file, the line-breaks have been tidily removed. How can I preserve them?
This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Legend
May 15, 2008 5:44 AM UTC
Thanks, Russ and Martti, for your help and encouragement. Next challenge, tables ... "my" developers are excited by the chance of exporting lots of tabular data as xml.
Translate
Legend
May 14, 2008 10:18 AM UTC
Niels, congratulations on conquering all challenges! It will be easy from here out :)
Translate
Inspiring
May 14, 2008 7:19 AM UTC
Hi again,

that's exactly what should happen..xml parser's default behaviour is to replace cr/lf in xml to space.

You can control the behaviour with rw-rule:

element "code" {
reader line break is forced return;
writer line break is forced return;
}

Martti
Translate