Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Creating XSDAnnotations
Creating XSDAnnotations [message #582997] Mon, 19 January 2004 17:05
Eclipse UserFriend
Originally posted by:


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();


Element element =
annotation.createUserInformation(facet.getSchema().getSchema Location());

Node node = element.getOwnerDocument().createTextNode("some text");



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!

Previous Topic:Possible errors in the XSD facet item providers
Next Topic:finding elements or attributes based on Types
Goto Forum:

Current Time: Mon Nov 30 22:37:54 GMT 2015

Powered by FUDForum. Page generated in 0.01656 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software