是否可以在cdata中使用樣式?我需要在「某些免責聲明!」之後進行換行在描述中。甚至有可能做出「某些免責聲明!」膽大?樣式cdata在xml
我有下面的XML:
<?xml version="1.0" encoding="utf-8"?>
<listings>
<house>
<owner>
<firstname>John</firstname>
<lastname>Doe</lastname>
<website>http://www.mysite.com</website>
</owner>
<address>
<street>1 place</street>
<city>Los Angeles</city>
<state>CA</state>
<postal_code>91011</postal_code>
<country>USA</country>
</address>
<description><![CDATA[Something Disclaimer! blah blah blah]]></description>
</house>
你在設計什麼語言? – Quentin 2012-02-28 15:34:40
你想嘗試什麼樣的風格? 「如果任何文本匹配」Somthing免責聲明!「,然後將其設爲藍色」? (雖然不是造型「等等等等)」? – Quentin 2012-02-28 15:40:12
對不起,從未在XML文檔中使用樣式,因此我不確定您的語言是什麼意思。文本將始終是相同的「某些免責聲明!」,給它一個換行符使它粗體,下面的文本將不會有任何樣式。此外,它將始終在說明字段中。 – CFNinja 2012-02-28 15:54:46