whiteSpace value="replace" : whiteSpace « XML Schema « XML Tutorial






<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  targetNamespace="http://www.java2s.com" xmlns="http://www.java2s.com"
  elementFormDefault="qualified">

  <xs:simpleType name="normalizedString">
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="replace" />
    </xs:restriction>
  </xs:simpleType>
</xs:schema>








3.51.whiteSpace
3.51.1.whiteSpace Specifies how white space (tabs, line feeds, carriage returns, and spaces) is processed
3.51.2.whiteSpace value="collapse"
3.51.3.whiteSpace value="replace"