
|
When is a space not a space?The significance of white space in xml2rfc First the easy one: Inside CDATA blocks white space is copied literally to output Then where it just makes the XML more readable Inside tags extra white space around tokens doesn’t change meaning BUT beware of splitting up multi-character ‘atoms’ … watch out for comment delimiters: end tag markers: and /> Example: In the text between the tags of an element (outside CDATA) Generally any amount of white space together is treated like ‘one space’ Output layout depends on the formatting tool Allows ‘tidy’ XML source Indented to show structure. |