Have you tried to use the Import Wizard for Read XML? It will generate the xpaths for attributes automatically. All you need is to select the beans in the step 4 of configuration wizard for your wanted attributes.
Import Configuration Wizard Step 4: select beans
I have the sample process here for you
dity up the column names
Drop the unwanted ID
Make sure you have the path of the saved file, exactly same as the file path in 'Open File'
Thanks for giving me the new XML data. I fixed some of the function expressions for 'de-pivot'. It is always tricky to make the regular expressions work for that.
我如何打开向导?我看到引用to it several times, but I cannot find any documentation. There is the "File">"Add Data" import dialog, but that one only allows me to import CSV and Excel. Is it part of some plugin?
Answers
Hi dimons91,
Have you tried to use the Import Wizard for Read XML? It will generate the xpaths for attributes automatically. All you need is to select the beans in the step 4 of configuration wizard for your wanted attributes.
Import Configuration Wizard Step 4: select beans
I have the sample process here for you
HTH,
YY
Hi, yyhuang
Thank you! It's really helpful.
But I made the xml file is more complex, and again difficulties arose.
I added some levels of nesting.
Because of this, an error occurs in the de-pivot operator
May be I need use more then one Read xml operator and then join tables? When I try this way I haven't any attribute make join correctly.
Here is new xml:
this table I need to make:
这过程中我做了:
Thanks for giving me the new XML data. I fixed some of the function expressions for 'de-pivot'. It is always tricky to make the regular expressions work for that.
Happy RapidMinining, :smileyvery-happy:
YY
Hi yyhuang,
我如何打开向导?我看到引用to it several times, but I cannot find any documentation. There is the "File">"Add Data" import dialog, but that one only allows me to import CSV and Excel. Is it part of some plugin?
Thanks,
Michael
The wizard is available directly inside the Read XML operator. See the attached parameter view.
You'll need to save a local copy of the XML file to run it but then you can point the resulting operator back to a web address if you want.
Lindon Ventures
Data Science Consulting from Certified RapidMiner Experts