java - Getting null value for XML sub element on application restart -


i working on swings based application, every component dropped save xml file , based on sub element type icon displaying in tree structure. like element in ab.xml

<root>   <action name="run">     <text>hello</text>     <type>go</type>   </action> </root> 

above element root belongs a.xsd , action belongs b.xsd imported a.xsd. getting value of text=hello using java code.

actiontype at=new actiontype (); // store whole action element at.gettext(); //hello at.getname(); //run 

but after restarting application, when expand tree structure nullpointer expection throwing component sub-element text=null coming.

at.gettext(); //null at.getname(); //run 

for element action working correctly, null value coming sub-element. please help, how resolve this.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -