| Home » Categories » Solutions by Business Process » E-Business » XML |
Formatting XML Files With “White Space” |
|
Article Number: 1804 | Rating: Unrated | Last Updated: Thu, Jun 22, 2023 at 5:00 PM
|
|
Datafile Software Formatting XML Files With "White Space” XML standards are to ignore any formatting characters — such as spaces, tabs, carriage returns and line feed characters — that appear outside of actual data. This allows XML files, including Datafile templates, to be formatted for text display with elements on separate lines, child elements to be indented compared to their parent element, and closing tags to appear directly underneath their paired opening tag. Such formatting characters embedded within an XML file are known collectively as "whitespace”. Whitespace is either ignored entirely if it precedes the start of an element tag or follows a closing element tag ("<” and ">” respectively), or is considered the same as a single space character anywhere else — where it acts as, for example, separators between attributes. The data contents of an element would not normally start or end with whitespace, and in fact the Datafile XML module will strip such whitespace. Spaces can, of course, be found within element data, and these are left intact. In practice, many XML files are sent as a text stream without any whitespace at all. This makes them very difficult to read visually if the need should arise, although the target processor will not care whether whitespace is present or not. Unformatted XML files may be viewed and printed in a formatted way by opening them with a web browser that recognises XML files — such as Microsoft’s Internet Explorer (version 5.50 or later). In addition, a Datafile facility is supplied to allow XML files to be printed in a formatted way. |
Attachments
There are no attachments for this article.
|
flgn
Viewed 1903 times since Mon, Jul 9, 2012
dfd
Viewed 2169 times since Mon, Jul 9, 2012
Template Attributes
Viewed 1933 times since Mon, Jul 9, 2012
General Lookup File - Appendix 6
Viewed 1922 times since Tue, Jul 10, 2012
Call XML Option From ProFiler Queued Menu
Viewed 1867 times since Tue, Jul 10, 2012
Sales Order Input File - Other XML Associated Files
Viewed 13507 times since Tue, Jul 10, 2012
EAN/Product Table Update
Viewed 1963 times since Thu, Jul 5, 2012
System Status
Viewed 1710 times since Mon, Jul 9, 2012
Update EAN/Products from Stock
Viewed 2021 times since Thu, Jul 5, 2012
Typical XML Purchase Order Cycle
Viewed 1752 times since Mon, Jul 9, 2012
|

