Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Retrieving user information
Retrieving user information [message #587375] Fri, 21 May 2004 21:57
Dennis Fuglsang is currently offline Dennis FuglsangFriend
Messages: 77
Registered: July 2009
Member
Ed,

I am trying to retrieve the content of <xs:documentation> nodes in my XSD
document. The logic I am trying is shown below but it does not return the
content. I am unsure if Element.getNodeValue() is really the correct method
to retrieve the content of the document node but I do not see any other
methods via the Element API. Also, examining all the Annotation contents
while running my code in debug has not given me any ideas. Do you have any
suggestions?
XSDAnnotation annotation = entity.getAnnotation();
if(annotation != null){
final Iterator userInfos =
annotation.getUserInformation().iterator();
while(userInfos.hasNext() ){
final Element userInfo = (Element)userInfos.next();
final String value = userInfo.getNodeValue();
if (value != null) {
return value;
}
}
}


Thanks in advance,
Dennis Fuglsang
Previous Topic:XSDSchema serialization
Next Topic:Re: can't generate EMF model from XML Schema using EMF 2.0 on eclipse 3.0M8 [Ye Olde Sun JDK 1.4 / C
Goto Forum:
  


Current Time: Sat Apr 20 16:39:17 GMT 2024

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

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

Back to the top