Loading an XML file with SDO [message #1053131] |
Thu, 02 May 2013 11:25  |
Eclipse User |
|
|
|
Hello,
I am trying to load an xml file as data Object thanks to SDO.
I want to parse it for gather all the data contained.
But i am facing a problem, there is datas missing.
How can i load my xml file with the best way for having access to all my variables and their values.
i am using this code below:
FileInputStream inputStream = new FileInputStream("model/can_db.xsd");
xsdHelper.define(inputStream, null);
inputStream.close();
XMLHelper xmlHelper = helperContext.getXMLHelper();
File file = new File("model/tiny.xml");
FileInputStream xml = new FileInputStream(file);
XMLDocument xmldoc = xmlHelper.load(xml,null,null);
DataObject modelSDO = xmldoc.getRootObject();
Thank you for your Help
Ayoub
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04311 seconds