br

The br element does not define a corresponding xml node, but lets the parser decide how to transform the html tag. The parser inserts a forced line break. Depending on the text structure, it will either create a new CData node that contains the line break, or append the line break to a text sibling of the "br" node..

RequestResponse

Example 1
<br />

becomes

RequestResponse

<![CDATA[
]]> 

Example 2 
<p>
Sample paragraph text line 1 <br/> 
sample paragraph text line 2 
</p>

If the previous node on the same level as the br tag is a text node, it adds a new line to the end of the text node text.

RequestResponse

<ParagraphStyle Style="NormalParagraphStyle">
<![CDATA[sample paragraph text line 1
]]>
<![CDATA[ sample paragraph text line 2 ]]>
</ParagraphStyle>

Do you have some feedback for us?

If you have suggestions for improving this article,