Writing an example set as xml

data123data123 MemberPosts:23Maven
edited October 2019 inHelp

Hi,

I'd appreciate any help in writing an example set to xml.

I've tried the process below (as posted by Helge,http://rapid-i.com/rapidforum/index.php?topic=8256.0) but it doesn't combine the documents but instead produces only 1 record.









<运营商激活= " true " class = "process" compatibility="6.0.008" expanded="true" name="Process">

<运营商激活= " true " class = "retrieve" compatibility="6.0.008" expanded="true" height="60" name="Retrieve Golf" width="90" x="45" y="210">


<运营商激活= " true " class = "loop_examples" compatibility="6.0.008" expanded="true" height="94" name="Loop Examples" width="90" x="246" y="210">

<运营商激活= " true " class = "loop_attributes" compatibility="6.0.008" expanded="true" height="94" name="Loop Attributes" width="90" x="246" y="120">

<运营商激活= " true " class = "text:extract_document" compatibility="5.3.002" expanded="true" height="76" name="Extract Document" width="90" x="246" y="165">



<运营商激活= " true " class = "text:create_document" compatibility="5.3.002" expanded="true" height="60" name="CLose Tag (2)" width="90" x="246" y="615">


<运营商激活= " true " class = "text:create_document" compatibility="5.3.002" expanded="true" height="60" name="CLose Tag (3)" width="90" x="514" y="660">


<运营商激活= " true " class = "text:create_document" compatibility="5.3.002" expanded="true" height="60" name="Open Tag" width="90" x="246" y="75">


<运营商激活= " true " class = "text:create_document" compatibility="5.3.002" expanded="true" height="60" name="CLose Tag" width="90" x="246" y="255">


<运营商激活= " true " class = "text:combine_documents" compatibility="5.3.002" expanded="true" height="112" name="Combine Documents" width="90" x="447" y="165"/>











<运营商激活= " true " class = "text:create_document" compatibility="5.3.002" expanded="true" height="60" name="Close XML" width="90" x="246" y="255">


<运营商激活= " true " class = "text:create_document" compatibility="5.3.002" expanded="true" height="60" name="Begin XML" width="90" x="246" y="30">


<运营商激活= " true " class = "text:combine_documents" compatibility="5.3.002" expanded="true" height="112" name="Combine Documents (2)" width="90" x="447" y="120"/>
<运营商激活= " true " class = "text:write_document" compatibility="5.3.002" expanded="true" height="76" name="Write Document" width="90" x="581" y="120">






<连接from_op = from_port“合并文件(2)”="document" to_op="Write Document" to_port="document"/>
<连接from_op = "写文档”from_port = " document" to_port="output 1"/>













Cheers

Tagged:

Answers

  • SGolbertSGolbert RapidMiner Certified Analyst, MemberPosts:344Unicorn

    Hi,

    I extended the process a bit and now I obtain an .xml file that I can read with the Read XML operator.







    <运营商激活= " true " class = "process" compatibility="8.2.001" expanded="true" name="Process">

    <运营商激活= " true " class = "retrieve" compatibility="8.2.001" expanded="true" height="68" name="Retrieve Golf" width="90" x="45" y="210">


    <运营商激活= " true " class = "loop_examples" compatibility="8.2.001" expanded="true" height="103" name="Loop Examples" width="90" x="246" y="210">

    <运营商激活= " true " class = "loop_attributes" compatibility="8.2.001" expanded="true" height="103" name="Loop Attributes" width="90" x="246" y="120">


    <运营商激活= " true " class = "text:extract_document" compatibility="8.1.000" expanded="true" height="76" name="Extract Document" width="90" x="246" y="165">



    <运营商激活= " true " class = "text:create_document" compatibility="8.1.000" expanded="true" height="60" name="CLose Tag (2)" width="90" x="246" y="615">


    <运营商激活= " true " class = "text:create_document" compatibility="8.1.000" expanded="true" height="60" name="CLose Tag (3)" width="90" x="514" y="660">


    <运营商激活= " true " class = "text:create_document" compatibility="8.1.000" expanded="true" height="60" name="Open Tag" width="90" x="246" y="75">


    <运营商激活= " true " class = "text:create_document" compatibility="8.1.000" expanded="true" height="60" name="CLose Tag" width="90" x="246" y="255">


    <运营商激活= " true " class = "text:combine_documents" compatibility="8.1.000" expanded="true" height="112" name="Combine Documents" width="90" x="447" y="165"/>











    <运营商激活= " true " class = "text:create_document" compatibility="8.1.000" expanded="true" height="68" name="Begin XML (2)" width="90" x="313" y="34">


    <运营商激活= " true " class = "text:create_document" compatibility="8.1.000" expanded="true" height="68" name="Close XML (2)" width="90" x="380" y="289">


    <运营商激活= " true " class = "text:combine_documents" compatibility="8.1.000" expanded="true" height="124" name="Combine Documents (2)" width="90" x="514" y="136"/>




    <连接from_op = from_port“合并文件(2)”="document" to_port="output 1"/>






    <运营商激活= " true " class = "text:create_document" compatibility="8.1.000" expanded="true" height="68" name="Begin XML" width="90" x="313" y="34">


    <运营商激活= " true " class = "text:create_document" compatibility="8.1.000" expanded="true" height="68" name="Close XML" width="90" x="447" y="289">


    <运营商激活= " true " class = "text:combine_documents" compatibility="8.1.000" expanded="true" height="124" name="Combine Documents (3)" width="90" x="581" y="136"/>
    <运营商激活= " true " class = "text:write_document" compatibility="8.1.000" expanded="true" height="82" name="Write Document" width="90" x="715" y="136">


    <运营商激活= " true " class = "advanced_file_connectors:read_xml" compatibility="8.2.001" expanded="true" height="68" name="Read XML" width="90" x="782" y="289">

























    <连接from_op = "写文档”from_port = " document" to_port="result 1"/>








    I hope it helps!

    Regards,

    Sebastian

  • MaerkliMaerkli MemberPosts:84Guru

    Hallo Sebastian,

    May I ask you, please, to publish the results you obtain with your process?

    Merci,

    Maerkli

  • SGolbertSGolbert RapidMiner Certified Analyst, MemberPosts:344Unicorn

    Hi Maerkli,

    Are you refering to the results of Read XML?

    Unbenannt.PNG22Unbenannt.PNG

    Since it uses the Golf dataset, you can test it on your computer. It would be easy to rename the attributes.

    Regards,

    Sebastian

    yyhuang
Sign InorRegisterto comment.