Some XML formats often import other namespaces, and use a "xsi:schemaLocation" attribute to specify (real or virual) schema locations.
One very common example these days is the Spring Framework, which already has 7 different schemas, and requires "xsi:schemaLocation" pairs to be present for all namespaces that have a schema available.
There are 3 ways to format a "xsi:schemaLocation" attribute:
whole attribute on one line
every pair on a separate line
every namespace or schemaLocation on a separate line (2 lines for each pair)
Such a preference/option could be added to the "Code Style" tab for XML, and used by the formatter.
When the attribute value is spread over multiple lines, it's common to indent all subsequent lines to align them to the first line. For example:
Some XML formats often import other namespaces, and use a "xsi:schemaLocation" attribute to specify (real or virual) schema locations.
One very common example these days is the Spring Framework, which already has 7 different schemas, and requires "xsi:schemaLocation" pairs to be present for all namespaces that have a schema available.
There are 3 ways to format a "xsi:schemaLocation" attribute:
whole attribute on one line
every pair on a separate line
every namespace or schemaLocation on a separate line (2 lines for each pair)
Such a preference/option could be added to the "Code Style" tab for XML, and used by the formatter.
When the attribute value is spread over multiple lines, it's common to indent all subsequent lines to align them to the first line. For example: