如何从Clob列获取XMLTAG /属性

时间:2018-07-31 16:19:50

标签: xml plsql clob

对于clob / xml以下的文件,我想获取所有的xmlatgs(例如FirstName)LAST NAME,而不只是标签名称的值。在我的表中,我有一个clob列,用于存储clob数据,我想提取所有可能的xmltags。 “

 "<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<emailRequest project="KLM" region="ALL" letterType="ABC" customerType="ABC" language="en" xmlns="http://test.xml.com/xmlService">
    <trackingId>1234</trackingId>
    <ban>678</ban>
    <header>
        <to>noemail@noemail.com</to>
        <from>Update</from>
        <subject>XL&amp;XL Processed for 1234</subject>
        <fromAlias>Update</fromAlias>
    </header>
    <body>
        <templateData>
            <dataField name="ServiceType">Wireless</dataField>
            <dataField name="AcctLast4">xx</dataField>
            <dataField name="AcctType">yy</dataField>
            <dataField name="PaymentAcctLast4">xx</dataField>
            <dataField name="PayConfirmNumber">ABC</dataField>
            <dataField name="PayDate">06/18/2018</dataField>
            <dataField name="AmountPaid">xx</dataField>
            <dataField name="FAN">N/A</dataField>
            <dataField name="FirstName">xx</dataField>
            <dataField name="LastName">xx</dataField>
            <dataField name="CustomerName">yy</dataField>
            <dataField name="FName">xx</dataField>
            <dataField name="LName">xx</dataField>
            <dataField name="datacenterInfo">BR</dataField>
        </templateData>
    </body>
    <clientData>
        <dataField name="WirelessInd">Y</dataField>
        <dataField name="WirelineInd">N</dataField>
        <dataField name="UverseInd">N</dataField>
        <dataField name="MultiProductInd">N</dataField>
        <dataField name="AutoPayInd">U</dataField>
        <dataField name="BillingOptInd">Unknown</dataField>
        <dataField name="RegistrationStatus">U</dataField>
    </clientData>
</emailRequest>
"

0 个答案:

没有答案