Hello,
I have an xs:string node in my Schema and its minOccurs=0,maxOccurs=1.
In xapplication (in one of my tags which extends JspTag) I get this node from BusinessDocument with the getChild() method.
When I call the isContentNode() method of this node it returns False !!!
But I think it should return True.
Am I right or not ?
myMD = sessionContext.getDocument(“currentHasta”);
BusinessNode bd=null;
BusinessNode tempNode =null;
bd = myMD.getDescendant(“/Hasta/Vaka[0]”);
for (int k=0;k<bd.getChild(0).getChildCount();k++) {
tempNode = bd.getChild(0).getChild(k);
if(tempNode.isContentNode) {
System.out.println("This Node is content Node…: " + tempNode.toXML() );
}
}
#Tamino#API-Management#webMethods