forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
99 lines
17 KiB
HTML
99 lines
17 KiB
HTML
<a name="mrs_01_1126"></a><a name="mrs_01_1126"></a>
|
|
|
|
<h1 class="topictitle1">HTML Input</h1>
|
|
<div id="body8662426"><div class="section" id="mrs_01_1126__en-us_topic_0000001173471380_s76d7812aa05b49849bf31b9217a0ff22"><h4 class="sectiontitle">Overview</h4><p id="mrs_01_1126__en-us_topic_0000001173471380_a85290171bd66460dbc7137fa5eef35b6"><span class="parmname" id="mrs_01_1126__en-us_topic_0000001173471380_p86ae87e7cf304910871b371f514836cf"><b>HTML Input</b></span> operator imports a regular HTML file and converts elements in the HTML file into input fields.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_1126__en-us_topic_0000001173471380_se7a83d4ef5eb4de6a6796a277e0010b4"><h4 class="sectiontitle">Input and Output</h4><p id="mrs_01_1126__en-us_topic_0000001173471380_a6e1dc1c0aaa945d49fa43226cff35d46">Input: HTML file</p>
|
|
<p id="mrs_01_1126__en-us_topic_0000001173471380_a5fcc359ddfe34c6b9c711f38944d704d">Output: multiple fields</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_1126__en-us_topic_0000001173471380_s05b4f0dabc2141a5a9243d7e6b01b8de"><h4 class="sectiontitle">Parameter Description</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_1126__en-us_topic_0000001173471380_t8c5432822f4743c0b3651a9855de833b" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Operator parameters description</caption><thead align="left"><tr id="mrs_01_1126__en-us_topic_0000001173471380_r9c519bb9549742f38543cfd050449162"><th align="left" class="cellrowborder" valign="top" width="18.370000000000005%" id="mcps1.3.3.2.2.6.1.1"><p id="mrs_01_1126__en-us_topic_0000001173471380_a1710e709c1cd4c4c8d26d63b5931dd60">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="54.73000000000001%" id="mcps1.3.3.2.2.6.1.2"><p id="mrs_01_1126__en-us_topic_0000001173471380_a4a614abd65c742818c72a33a5e448f53">Description</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="10.020000000000001%" id="mcps1.3.3.2.2.6.1.3"><p id="mrs_01_1126__en-us_topic_0000001173471380_a64fb735f769740ef9ffee2d4a5a47500">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="7.190000000000002%" id="mcps1.3.3.2.2.6.1.4"><p id="mrs_01_1126__en-us_topic_0000001173471380_a7fa4894e24fa47548005004e5034e696">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="9.690000000000001%" id="mcps1.3.3.2.2.6.1.5"><p id="mrs_01_1126__en-us_topic_0000001173471380_a4a8b1073b0e247b5a576121abea06c2d">Default Value</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_01_1126__en-us_topic_0000001173471380_rb5f32e46eaa44be0969a4455d26861e5"><td class="cellrowborder" valign="top" width="18.370000000000005%" headers="mcps1.3.3.2.2.6.1.1 "><p id="mrs_01_1126__en-us_topic_0000001173471380_a780557fc61c145748877267ec294ab33">parent tag</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.73000000000001%" headers="mcps1.3.3.2.2.6.1.2 "><p id="mrs_01_1126__en-us_topic_0000001173471380_ac29193f542614857a983c797011a1236">Upper-layer HTML tag of all fields for limiting the search scope.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10.020000000000001%" headers="mcps1.3.3.2.2.6.1.3 "><p id="mrs_01_1126__en-us_topic_0000001173471380_a8dc953c037b845e2bca6c4618909cbdd">string</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="7.190000000000002%" headers="mcps1.3.3.2.2.6.1.4 "><p id="mrs_01_1126__en-us_topic_0000001173471380_a54820f5c2bc6492c8757c2d197dd3611">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.690000000000001%" headers="mcps1.3.3.2.2.6.1.5 "><p id="mrs_01_1126__en-us_topic_0000001173471380_a78d33b9002d24d9badb5260650c008cd">None</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_1126__en-us_topic_0000001173471380_r6dfa488fecdd4cf9aaa03d1fa57daef9"><td class="cellrowborder" valign="top" width="18.370000000000005%" headers="mcps1.3.3.2.2.6.1.1 "><p id="mrs_01_1126__en-us_topic_0000001173471380_ac9a02f43b48d469ba54922a80e3bb37f">Filename as field</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.73000000000001%" headers="mcps1.3.3.2.2.6.1.2 "><p id="mrs_01_1126__en-us_topic_0000001173471380_a066e84f44ae04f99af19b6b118f67014">User-defined field whose value is the name of the file that stores the current data.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10.020000000000001%" headers="mcps1.3.3.2.2.6.1.3 "><p id="mrs_01_1126__en-us_topic_0000001173471380_a0ef2c9a164c64aa2898dbb59ff165e30">string</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="7.190000000000002%" headers="mcps1.3.3.2.2.6.1.4 "><p id="mrs_01_1126__en-us_topic_0000001173471380_aa32071da628a4765b1c9371fe680f384">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.690000000000001%" headers="mcps1.3.3.2.2.6.1.5 "><p id="mrs_01_1126__en-us_topic_0000001173471380_ae39c0c7bee1642e5841f7b13918ca29b">None</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_1126__en-us_topic_0000001173471380_r0c8eed07b16b43f3b39e427d547f7809"><td class="cellrowborder" valign="top" width="18.370000000000005%" headers="mcps1.3.3.2.2.6.1.1 "><p id="mrs_01_1126__en-us_topic_0000001173471380_a90715feeba454b10baf87764968a0777">Absolute file name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.73000000000001%" headers="mcps1.3.3.2.2.6.1.2 "><p id="mrs_01_1126__en-us_topic_0000001173471380_a22176bb1af5448449bbe195c928aadbf">Whether the file name used as the value of <span class="parmname" id="mrs_01_1126__en-us_topic_0000001173471380_parmname44911627145711"><b>Filename as field</b></span> contains an absolute path. Selecting the option button indicates that the file name contains an absolute path; deselecting the option button indicates that the file name does not contain a path.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10.020000000000001%" headers="mcps1.3.3.2.2.6.1.3 "><p id="mrs_01_1126__en-us_topic_0000001173471380_a8f1b6d6ddf124c1cb338235bbd6f8ae3">boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="7.190000000000002%" headers="mcps1.3.3.2.2.6.1.4 "><p id="mrs_01_1126__en-us_topic_0000001173471380_a735b2c5ba3b94c568031e7cf3d8532a6">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.690000000000001%" headers="mcps1.3.3.2.2.6.1.5 "><p id="mrs_01_1126__en-us_topic_0000001173471380_abf5067c4758146079231dc98b396ca73">No</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_1126__en-us_topic_0000001173471380_rf6a70efcffa4428d885bb95b7b3d8b74"><td class="cellrowborder" valign="top" width="18.370000000000005%" headers="mcps1.3.3.2.2.6.1.1 "><p id="mrs_01_1126__en-us_topic_0000001173471380_a1bb33d3929ea44caa28f4e812a9c8321">Validate input field</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.73000000000001%" headers="mcps1.3.3.2.2.6.1.2 "><p id="mrs_01_1126__en-us_topic_0000001173471380_a1e705b3b20844dc9a1b591e69be46929">Whether to check the type matching between the input field and the value. If the value is <span class="parmvalue" id="mrs_01_1126__en-us_topic_0000001173471380_pf08925f73a374f27b9884d26e6bbc246"><b>NO</b></span>, the field is not checked. If the value is <span class="parmvalue" id="mrs_01_1126__en-us_topic_0000001173471380_p63d8c6b9664241a488ea6488697c9223"><b>YES</b></span>, the field will be checked. If the input field does not match the value type, the line is skipped.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10.020000000000001%" headers="mcps1.3.3.2.2.6.1.3 "><p id="mrs_01_1126__en-us_topic_0000001173471380_a9e7b815bf04a439bb011843c8bd727b7">enum</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="7.190000000000002%" headers="mcps1.3.3.2.2.6.1.4 "><p id="mrs_01_1126__en-us_topic_0000001173471380_a510153a0cdc740f39deeaaeba54e738f">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.690000000000001%" headers="mcps1.3.3.2.2.6.1.5 "><p id="mrs_01_1126__en-us_topic_0000001173471380_a1215612a5aaa43969c4f9a1acc81b902">YES</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_1126__en-us_topic_0000001173471380_r5144ac113caf41bab3b260fabc9907b2"><td class="cellrowborder" valign="top" width="18.370000000000005%" headers="mcps1.3.3.2.2.6.1.1 "><p id="mrs_01_1126__en-us_topic_0000001173471380_a07428401b2a44d06be59f0b4f5d6c177">Input fields</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.73000000000001%" headers="mcps1.3.3.2.2.6.1.2 "><p id="mrs_01_1126__en-us_topic_0000001173471380_a15ad2e44157a47ce91a9078eecc34037">Information about input fields:</p>
|
|
<ul id="mrs_01_1126__en-us_topic_0000001173471380_u594f1ad6d75a4f2cb751ab737ed41c99"><li id="mrs_01_1126__en-us_topic_0000001173471380_lb9b37092995e4581be698f1c5f7834bc"><strong id="mrs_01_1126__en-us_topic_0000001173471380_b73511955795">position</strong>: Position of the field. The position sequence starts from 1.</li><li id="mrs_01_1126__en-us_topic_0000001173471380_l3e73782ba48b418ab86427041d1d886c"><strong id="mrs_01_1126__en-us_topic_0000001173471380_b81972585915">field name</strong>: field name</li><li id="mrs_01_1126__en-us_topic_0000001173471380_l011bd4f742294f5db6b52c744ee37517"><strong id="mrs_01_1126__en-us_topic_0000001173471380_b1368418051014">field tag</strong>: field tag</li><li id="mrs_01_1126__en-us_topic_0000001173471380_le5f2aa65ca32490f9fc889ccf701912c"><strong id="mrs_01_1126__en-us_topic_0000001173471380_b695164181020">keyword</strong>: A keyword can be configured to match the content of the tag. Wildcards are supported. For example, if the tag content is <span class="parmvalue" id="mrs_01_1126__en-us_topic_0000001173471380_pb0c6f60667b74b4dba9aa6714978462f"><b>name</b></span>, you can configure the keyword <span class="parmvalue" id="mrs_01_1126__en-us_topic_0000001173471380_pbfa6c315f6aa49d2b7e8f1cf819f27ea"><b>*name*</b></span>.</li><li id="mrs_01_1126__en-us_topic_0000001173471380_ld2cc4e060fc74ef7a75139358f54bb11"><strong id="mrs_01_1126__en-us_topic_0000001173471380_b72921456151012">type</strong>: field type</li><li id="mrs_01_1126__en-us_topic_0000001173471380_l4fa2c2eef3634ee9907c3f90ee323d0a"><strong id="mrs_01_1126__en-us_topic_0000001173471380_b14610153521010">date format</strong>: If the field type is <span class="parmvalue" id="mrs_01_1126__en-us_topic_0000001173471380_pd0bea16def0d4a779df46c7984bda3c5"><b>DATE</b></span>, <span class="parmvalue" id="mrs_01_1126__en-us_topic_0000001173471380_p4612936abe51495ba449864cfc147ffd"><b>TIME</b></span>, or <span class="parmvalue" id="mrs_01_1126__en-us_topic_0000001173471380_pa44dd74f5751493e924bcfd89a80e363"><b>TIMESTAMP</b></span>, you need to specify the time format. If the field type is neither of them, the time format is invalid. The example time format is <span class="filepath" id="mrs_01_1126__en-us_topic_0000001173471380_f6b6413c4b6d641eab45d2c0576570109"><b>yyyyMMdd HH:mm:ss</b></span>.</li><li id="mrs_01_1126__en-us_topic_0000001173471380_l6ce13d1bf71e4ec18cb567eec523320e"><strong id="mrs_01_1126__en-us_topic_0000001173471380_b1418815303103">length</strong>: Field value length. If the actual field value is excessively long, the value is cut based on the configured length. When <span class="parmname" id="mrs_01_1126__en-us_topic_0000001173471380_pa5d59c25cec24f79926268367a823368"><b>type</b></span> is set to <span class="parmvalue" id="mrs_01_1126__en-us_topic_0000001173471380_p26e9bffe4ed44a9f824616b9d4e35ae3"><b>CHAR</b></span>, spaces are added to the field value for supplement if the actual field value length is less than the configured length. When <span class="parmname" id="mrs_01_1126__en-us_topic_0000001173471380_p0bf5e0796f55454ba47ae8afc95c5c45"><b>type</b></span> is set to <span class="parmvalue" id="mrs_01_1126__en-us_topic_0000001173471380_p312ee181756144faaf14c128fa1071b0"><b>VARCHAR</b></span>, no space is added to the field value for supplement if the actual field value length is less than the configured length.</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10.020000000000001%" headers="mcps1.3.3.2.2.6.1.3 "><p id="mrs_01_1126__en-us_topic_0000001173471380_a3ea01d842bb04f4eb1107dd9010f5996">map</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="7.190000000000002%" headers="mcps1.3.3.2.2.6.1.4 "><p id="mrs_01_1126__en-us_topic_0000001173471380_a606c9ad3150b4205bc7ae765c07b8f15">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.690000000000001%" headers="mcps1.3.3.2.2.6.1.5 "><p id="mrs_01_1126__en-us_topic_0000001173471380_ae806177db230435cbfacefa89afab1dd">None</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="mrs_01_1126__en-us_topic_0000001173471380_se748ae823c9b48a780eeba9cede6a0f5"><h4 class="sectiontitle">Data Processing Rule</h4><ul id="mrs_01_1126__en-us_topic_0000001173471380_u77c8c9d0561e4cbbbb412cfb48c379d2"><li id="mrs_01_1126__en-us_topic_0000001173471380_l6221a8c7edfa403fa8b39d98d9d3a61e"><strong id="mrs_01_1126__en-us_topic_0000001173471380_b5055735775517">parent tag</strong> is configured first to limit the search scope. The value of <strong id="mrs_01_1126__en-us_topic_0000001173471380_b29746205875517">parent tag</strong> must exist; otherwise, the obtained content is empty.</li><li id="mrs_01_1126__en-us_topic_0000001173471380_lfd3c82cb9365413985843ffc895cf110"><strong id="mrs_01_1126__en-us_topic_0000001173471380_b139883872775517">Input fields</strong> are configured so that the sub-tags can be used to precisely locate the tags of fields. If the tags are the same, keywords will be used for precise matching.</li><li id="mrs_01_1126__en-us_topic_0000001173471380_la1783bdd972b4228928ca0e0a83435ca">The keyword is used to match the content of the field. The configuration method is similar to that of the <span class="parmname" id="mrs_01_1126__en-us_topic_0000001173471380_parmname204891841875517"><b>File filter</b></span> field in the <span class="parmname" id="mrs_01_1126__en-us_topic_0000001173471380_parmname149303222775517"><b>From</b></span> settings. The wildcard <span class="parmvalue" id="mrs_01_1126__en-us_topic_0000001173471380_parmvalue174978441775517"><b>(*)</b></span> is supported. The following three tags are provided to assist in locating the field:<ol id="mrs_01_1126__en-us_topic_0000001173471380_o9ccb895dd12d4ffba2ad72cd22363049"><li id="mrs_01_1126__en-us_topic_0000001173471380_l65ea39f21b8c41049e9ab7d977511c9e"><span class="parmname" id="mrs_01_1126__en-us_topic_0000001173471380_p8517ac2069f84dbcbf261eec9e7b4c39"><b>#PART</b></span>: indicates the values matched by wildcard <span class="parmvalue" id="mrs_01_1126__en-us_topic_0000001173471380_pf001535e504445a79532e5c810504c77"><b>*</b></span>. If there are multiple <span class="parmvalue" id="mrs_01_1126__en-us_topic_0000001173471380_pd9ff7e13ff6f4cd7abfb35eaf5fcb97f"><b>*</b></span>, you can specify an order from left to right and obtain content that matches the sequence number <span class="parmvalue" id="mrs_01_1126__en-us_topic_0000001173471380_p8e7308119b264b828f6505f159304ae5"><b>*</b></span>. For example, <span class="parmname" id="mrs_01_1126__en-us_topic_0000001173471380_pab92cd2a29af4ea284dc57c653fdb474"><b>#PART1</b></span> indicates to obtain the value that matches the first <span class="parmvalue" id="mrs_01_1126__en-us_topic_0000001173471380_p5a6e27e1982f4a1db25459743282ab87"><b>*</b></span> and <span class="parmname" id="mrs_01_1126__en-us_topic_0000001173471380_p139e8d536b8e4218b665dec28d8fbc49"><b>#PART8</b></span> indicates to obtain the value that matches the eighth <span class="parmvalue" id="mrs_01_1126__en-us_topic_0000001173471380_pd69ec5fa8f964ca2b731d5924652159b"><b>*</b></span>).</li><li id="mrs_01_1126__en-us_topic_0000001173471380_lf38a10b33c844c2dab0ba829090af139"><span class="parmvalue" id="mrs_01_1126__en-us_topic_0000001173471380_pca885114ce314deb90c9d764faf8b123"><b>#NEXT</b></span>: indicates that you can obtain the value next to the value that matches the tag.</li><li id="mrs_01_1126__en-us_topic_0000001173471380_l903ec9e370b041dfb44a2c8f91b0ec33"><span class="parmname" id="mrs_01_1126__en-us_topic_0000001173471380_pdf9b0a6c8c904101bc35434fd5ed75bd"><b>#ALL</b></span>: indicates that you can obtain all the values that match the tag.</li></ol>
|
|
</li><li id="mrs_01_1126__en-us_topic_0000001173471380_l241c49b915d5464f84d93e79fb518c91">If the tag is configured incorrectly, the obtained value is empty, but no error is reported.</li></ul>
|
|
</div>
|
|
<div class="section" id="mrs_01_1126__en-us_topic_0000001173471380_se88e0d70b6274a148352b4a09fa4870b"><h4 class="sectiontitle">Example</h4><p id="mrs_01_1126__en-us_topic_0000001173471380_a0f9224180b1649eb912c42f861f96c23">The following figure shows the source file.</p>
|
|
<p id="mrs_01_1126__en-us_topic_0000001173471380_ae800b6065ece41b99a9c81ffa0c3efe3"><span><img id="mrs_01_1126__en-us_topic_0000001173471380_ibe2864dc6cc748588456dd0b8c7b466c" src="en-us_image_0000001296219464.jpg"></span></p>
|
|
<p id="mrs_01_1126__en-us_topic_0000001173471380_ac2e04a9c00f5468daf82694dcd2c21f3">Configure the <span class="parmname" id="mrs_01_1126__en-us_topic_0000001173471380_pee59bac529d446f1933604afda9aec19"><b>HTML Input</b></span> operator to generate fields A, B, and C.</p>
|
|
<p id="mrs_01_1126__en-us_topic_0000001173471380_a6178da42542c4df1a04b77a1a6446274"><span><img id="mrs_01_1126__en-us_topic_0000001173471380_i5221f633c4af4efabf40090ed501af5d" src="en-us_image_0000001296059832.png"></span></p>
|
|
<p id="mrs_01_1126__en-us_topic_0000001173471380_aa6988ad6375245e9bf5550ac43fbb162">Three fields are generated, as shown in the following figure.</p>
|
|
<p id="mrs_01_1126__en-us_topic_0000001173471380_ab98a196d7fe8444991e5f0c5cf24fdc0"><span><img id="mrs_01_1126__en-us_topic_0000001173471380_ie27ba5f555784c05bf6ba087bafc6d71" src="en-us_image_0000001349139545.jpg"></span></p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_1121.html">Input Operators</a></div>
|
|
</div>
|
|
</div>
|
|
|