getting elements [message #24001] |
Tue, 24 June 2003 04:12  |
Eclipse User |
|
|
|
Originally posted by: rsb.ppi.de
Hi there,
I am looking for a method to extract the names of elements.
With
--- 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();
iter.hasNext();
/*no-op */
) {
System.out.println(iter.next());
}
}
--- End Code ---
I recive this output
org.eclipse.xsd.impl.XSDElementDeclarationImpl@c791b9 (element: [xs:element:
null])
(name: b_Element, targetNamespace: http://www.fints.org/composer/)
(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.
Cheers
Rene
|
|
|
Re: getting elements [message #24036 is a reply to message #24001] |
Tue, 24 June 2003 08:14   |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Rene,
Cast the result of next() to XSDElementDeclaration and call getName.
Rene Schrader-Boelsche wrote:
> Hi there,
> I am looking for a method to extract the names of elements.
>
> With
> --- 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();
> iter.hasNext();
> /*no-op */
> ) {
> System.out.println(iter.next());
> }
> }
> --- End Code ---
>
> I recive this output
>
> org.eclipse.xsd.impl.XSDElementDeclarationImpl@c791b9 (element: [xs:element:
> null])
> (name: b_Element, targetNamespace: http://www.fints.org/composer/)
> (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.
>
> Cheers
> Rene
|
|
|
Re: getting elements [message #24066 is a reply to message #24036] |
Tue, 24 June 2003 08:18  |
Eclipse User |
|
|
|
Originally posted by: rene.villa-cossio.com
Ed Merks wrote:
> Cast the result of next() to XSDElementDeclaration and call getName.
>>But I want the element name (here: b_Element), only.
Thanx for the (very) quick help.
Rene
|
|
|
Re: getting elements [message #573419 is a reply to message #24001] |
Tue, 24 June 2003 08:14  |
Eclipse User |
|
|
|
Rene,
Cast the result of next() to XSDElementDeclaration and call getName.
Rene Schrader-Boelsche wrote:
> Hi there,
> I am looking for a method to extract the names of elements.
>
> With
> --- 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();
> iter.hasNext();
> /*no-op */
> ) {
> System.out.println(iter.next());
> }
> }
> --- End Code ---
>
> I recive this output
>
> org.eclipse.xsd.impl.XSDElementDeclarationImpl@c791b9 (element: [xs:element:
> null])
> (name: b_Element, targetNamespace: http://www.fints.org/composer/)
> (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.
>
> Cheers
> Rene
|
|
|
Re: getting elements [message #573459 is a reply to message #24036] |
Tue, 24 June 2003 08:18  |
Eclipse User |
|
|
|
Originally posted by: rene.villa-cossio.com
Ed Merks wrote:
> Cast the result of next() to XSDElementDeclaration and call getName.
>>But I want the element name (here: b_Element), only.
Thanx for the (very) quick help.
Rene
|
|
|
Powered by
FUDForum. Page generated in 0.03664 seconds