Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » getting elements
getting elements [message #573376] Tue, 24 June 2003 08:12
Eclipse UserFriend
Originally posted by:

Hi there,
I am looking for a method to extract the names of elements.

--- Begin Code ---
public static void printElement(XSDSchema xsdSchema) {
System.err.println("--- P R I N T E L E M E N T");
for (Iterator iter = xsdSchema.getElementDeclarations().iterator();
/*no-op */
) {
--- End Code ---

I recive this output

org.eclipse.xsd.impl.XSDElementDeclarationImpl@c791b9 (element: [xs:element:
(name: b_Element, targetNamespace:
(value: null, constraint: <unset>, form: qualified, lexicalValue: null)
(nillable: <unset>, disallowedSubstitutions: [],
substitutionGroupExclusions: [], abstract: <unset>, lexicalFinal: [], block:

But I want the element name (here: b_Element), only.

Previous Topic:Call Hierarchy, short key and osx
Next Topic:getting elements
Goto Forum:

Current Time: Mon Nov 30 03:01:28 GMT 2015

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

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