Creating XSDAnnotations [message #582997] |
Mon, 19 January 2004 17:05 |
Eclipse User |
|
|
|
Originally posted by: floodg.uk.ibm.com
Hi,
trying to create an XSDAnnotation for an XSDFacet. Can't understand why the
following code doesn't do the job!
XSDAnnotation annotation = XSDFactory.eINSTANCE.createXSDAnnotation();
facet.setAnnotation(annotation);
Element element =
annotation.createUserInformation(facet.getSchema().getSchema Location());
Node node = element.getOwnerDocument().createTextNode("some text");
element.appendChild(node);
annotation.getUserInformation().add(element);
I've also tried element.setNodeValue("some text") but that doesn't work
either. My output contains no annotation node at all.
And ideas or sample code would be greatly appreciated!
Gary.
|
|
|
Powered by
FUDForum. Page generated in 0.03313 seconds