Adding strings and formatting xml content

I want to boldly and add breaks to my xml <Content>with html tags. This is the method I tried:

<?xml version="1.0" encoding="UTF-8"?>
-<Response>

<Count>1</Count>


-<Result>


-<result>

<Title>Title Title</Title>

<Content><h1><b>Subheading</b></h1> <h3>Hello everyone</h3><br/> Date:23th November<br/> <br/></Content>

<Image/>

<CreatedAt>2015-12-14T06:42:55.267Z</CreatedAt>

<ModifiedAt>2015-12-14T07:17:19.577Z</ModifiedAt>

<CreatedBy>00000000-0000-0000-0000-000000000000</CreatedBy>

<ModifiedBy>00000000-0000-0000-0000-000000000000</ModifiedBy>

<Owner>00000000-0000-0000-0000-000000000000</Owner>

<Link/>

<Group>TSTSCC</Group>

<Id>e7e87f30-a22d-11e5-8340-f3025c46ea4f</Id>

</result>

</Result>

</Response>

The above result shows every tag that I used: <b>Hi</b>  instead of Hi .

So, how do I format my above xml content using html tags?
Can anyone help?

+4
source share
1 answer

XML , , "h1" HTML "h1" . , HTML "h1" , "h1" XML , .

h1 HTML "h1" , HTML.

 <h1 xmlns="http://www.w3.org/1999/xhtml">

, , , , HTML, XML . , , , .

, , , XML HTML, CSS, , . , , XML , .

0

Source: https://habr.com/ru/post/1620041/


All Articles