How do I add whitespace in xml?

golden retriever puppy Asked by qtpi3 over 3 years ago, 1 answer.

How do I add whitespace in XML?

Answered by editor on Apr 03, 2007, 11:17AM
| 7386 answers.
Advisor-small

Hi,

XML considers four characters to be whitespace: the carriage return (\r or ch(13)), the linefeed (\n or ch(10)), the tab(\t), and the spacebar (' '). In XML documents, there are two types of whitespace:

W3C XSLT specification provides two elements— xsl:strip-space and xsl:preserve-space— to handling whitespaces. The xsl:strip-space specifies the XML elements that should have whitespace text nodes (that is, text nodes composed entirely of whitespace characters) stripped. Note that the xsl:strip-space only affects nodes that are pure whitespace. xsl:strip-space can list as a set of element separated by whitespaces or use wildcards such as *. The xsl:preserve-space has similar syntax but does just the opposite to the xsl:strip-space .

I hope that helps.
I really have no idea what it means!

Source: http://www.oracle.co...

Answer this Question: "How do I add whitespace in XML?"

Your Answer: HTML is not allowed.


Back to top

Popular questions related to How do I add whitespace in XML?