Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML white space

Status
Not open for further replies.

Australopithicus

Instructor
Dec 17, 2007
1
AU
I am new to xml and require help with code for making xml recognise a paragraph space. I understand the ATTACH issue in principle but do not know enough about xml to construct the right code for a specific size of white space.

All I want to do is specify an area in front of the xml text for xml to recognise the space before transmitting the text to a scroller built in Flash.

Help would be greatly appreciated.
 
XML does not provide any mechanism for page formatting. Its purpose is to wrap structured data. For the structure, white space is irrelevant as long as you're not trying to make the XML itself readable. As far as the data, it may contain any information at all. White space may have a different meaning for text data than for binary data, for example.

If I understand what you're trying to do, you want to format the data. If so, then you probably want to translate your XML document into a page format language like HTML, which is designed specifically for display. Look into XSLT for that. It may be overkill for what you're trying to do, but it'll be a very powerful tool for you if you need to do more in the future.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top