2 Reading and Writing XML
| function | |||||
| 
 | |||||
| 
 | |||||
| function | |||||
| 
 | 
The xml.read function normalizes input when the value of xml.current_read_normalize is #true. In that case, multiple consecutive xml.Text objects in content are collapsed into a single xml.Text object that has the xml.Text.WriteMode.default write mode.
By default, xml.write does not add newlines or other whitespace that is not explicitly present in doc. If indentation is #'scan, then whitespace is added within each element unless any content within the element (potentially nested in other elements) is a xml.PCData or xml.Entity. If indentation is #'peek, then printing is like #'scan, except that only the immediate content of an element is checked, and nested xml.PCData or xml.Entity do not disable whitespace.
| function | ||||
| 
 | ||||
| function | ||||
| 
 | ||||
| function | ||||
| 
 | ||||
| function | ||||
| context parameter | ||
| 
 | 
| context parameter | ||
| 
 | 
| context parameter | ||
| 
 | 
| context parameter | ||
| 
 | 
| context parameter | ||
| 
 | 
| context parameter | ||
| 
 | 
| enumeration | ||||
| 
 |