Scenario: Converting the body of an XML file into an
org.w3c.dom.Document.class
This scenario applies only to a Talend solution with ESB.
In this scenario, a cConvertBodyTo component is used
to convert the body of an XML file into an org.w3c.dom.Document.class. Then a cBean component imports the org.w3c.dom.Document class,
checks its content and prints out the root element name and the content of each
category element.
The XML file is as follows:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
<bookstore> <bookshelf> <category>Cooking</category> <quantity>100</quantity> </bookshelf> <bookshelf> <category>Languages</category> <quantity>200</quantity> </bookshelf> <bookshelf> <category>Arts</category> <quantity>300</quantity> </bookshelf> <bookshelf> <category>Science</category> <quantity>400</quantity> </bookshelf> </bookstore> |
Document get from Talend https://help.talend.com
Thank you for watching.
Subscribe
Login
0 Comments