XML CDATA Extents, special characters: <= less than equals, >= greater than equal

Source: Internet
Author: User
Tags cdata xml cdata

The XML document contains text similar to "Elements looks like <this>", where "<this>" interprets the parser as an element, and what people actually want is the literal text that "<this>" represents.

1.CDATA Zone: It's all called character data, to "<![ Cdata[ "begins with the" ]]>"End, embedding the original data between the two that does not want to be parsed by the parser, and the parser does not parse the content in the CDATA area, but

Leave this data intact to the downstream process.

2. Special characters:

In XML: <= is less than or equal, >= is greater than or equal to the markup that you want to add: <![ cdata[]]> XML has a & symbol that requires <! [cdata[&]]> This means &

<= is less than or equal to: <! [Cdata[<=]]>

>= is greater than or equal to: <! [Cdata[>=]]>

Some special characters can also be replaced by the following substitution symbol.

Special character substitution symbol

& &amp;

< &lt;

> &gt;

"&quot;

' &apos;

eg.

<!--drilling daily use SQL-->
<entry key= "Zjdailydrillrepcnquery" >
<map>
<entry key= "SQL" >
<value>
Select Zjdailydrillrep.dailydrilrepid,
ZJDAILYDRILLREP.WELLBORE_ID,
Bore.well_legal_name,
Zjdailydrillrep.spudin_date,
Zjdailydrillrep.reportfor,
ZJDAILYDRILLREP.DEPTHMKB,
ZJDAILYDRILLREP.TVDMKB,
ZJDAILYDRILLREP.FORMAT_ID,
Zjdailydrillrep.enginbrief,
Zjdailydrillrep.dailywellcost,
Zjdailydrillrep.insert_date,
Zjdailydrillrep.status,
Zjdailydrillrep.comments,
Zjdailydrillrep.submitter,
Zjdailydrillrep.verifyer,
Rig.rig_no,
Zjdailydrillrep.rothours,
(select GEO.) Current_td
From Lj_daily_geological_report GEO
where zjdailydrillrep.wellbore_id = GEO. wellbore_id
and GEO. Report_date = Zjdailydrillrep.reportfor
and geo.half_full = ' 260002 ' and rownum<! [Cdata[<=1]]>TD,--------Express RowNum <=1

(select GEO.) Current_td
From Lj_daily_geological_report GEO
where zjdailydrillrep.wellbore_id = GEO. wellbore_id
and GEO. Report_date = Zjdailydrillrep.reportfor-1
and geo.half_full = ' 260002 ' and rownum<! [Cdata[<=1]]>) Tdbefore
From Zj_dailydrillrep Zjdailydrillrep
Left Join Comm_wellbore Bore
On bore.wellbore_id = zjdailydrillrep.wellbore_id
Left JOIN Zj_rig_data Rig
On rig.rig_id = bore.rig_id
where 1 = 1

</value>
</entry>
</map>
</entry>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.