I receive a string from an external java class which is an xml-file. How can I parse this to an ivy-xml object? (Xpert.ivy 4.3) asked 18.10.2013 at 11:25 Nikel Weis |
The following ivyScript parses an xml stored in string to an ivy-xml object:
answered 18.10.2013 at 16:32 Reto Weiss ♦♦ Which import(s) is/are necessary? I get an class Xml not found message. I've used a different approach using the DocumentBuilder. So I get an xml-Object which is no ivy-object which is actually fine for me. Ah - just to mention - this project is in an 4.3 environment. Beside that - is the role node necessary or was this just an example?
(21.10.2013 at 08:25)
Nikel Weis
1
There is no import necessary because Xml is a standard Xpert.ivy data type. The xml in xmlDocument is an expamle. Your Xml will look different of course. I have written the example code in Xpert.ivy 5. But it should also work in 4.3.
(21.10.2013 at 08:29)
Reto Weiss ♦♦
True. Don't know what was wrong - copy&paste is sometimes a really difficult task for me. ;)
(21.10.2013 at 09:19)
Nikel Weis
|
If an XML-Object (not an ivy-scripting object) is fine for you - which works in my case - I used the following approach:
answered 21.10.2013 at 08:29 Nikel Weis |
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 18.10.2013 at 11:25
Seen: 2,872 times
Last updated: 21.10.2013 at 09:19