IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Profile: Muhilan
About
User Name: Muhilan
Forum Rank: Newbie
Real Name:
Location Chennai
Occupation:
Interests:
Gender: None Specified
Statistics
Joined: Tuesday, February 9, 2010
Last Visit: Tuesday, February 9, 2010 6:16:52 AM
Number of Posts: 1
[0.01% of all post / 0.00 posts per day]
Avatar
Last 10 Posts
Topic: Prograqmming Using Java
Posted: Tuesday, February 9, 2010 5:59:31 AM
Hi,

I am unable to open the XML file using XMLSpy Java API , I just used the sample code mentioned in the Help section of Altova.

I am always getting Null pointer Exception while opening the file (last line of the code snippet)

public static void main(String[] args)

{

SpyApplication app = null;

SpyDoc oDoc = null;

SpyXMLData oData = null;

SpyXMLData oNewChild = null;



try

{

app = new SpyApplication();

app.ShowApplication( true );



oDoc = app.GetDocuments().OpenFile("C:\\test.xml", true );


Is there any way to solve this , i just placed my XML file within C:...

Thanks ,
Muhil



Use of the Altova User Forum(s) is governed by the Altova Terms of Use.