Skip to main content



      Home
Home » Archived » XML Schema Definition (XSD) » getName() returns null too
getName() returns null too [message #40362] Sat, 03 April 2004 12:24 Go to next message
Eclipse UserFriend
Originally posted by: stibrany.tenax.sk

Hello.

Another "returns null" question :-)
When I call getName() method of XSDElementDeclaration, it gives me null,
although getQName() returns correct answer. How can I get element name
without "...:" prefix?

Thank you.
-Peter Stibrany
Re: getName() returns null too [message #40511 is a reply to message #40362] Mon, 05 April 2004 06:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Peter,

An XSDElementDeclaration is used to represent either the actual "abstract"
element declaration or an element declaration reference, in which case all
the properties are null and the getResolveElementDeclaration is needed to
navigate to the actual declaration with all the properties, like name, that
you want to examine. Again, depending on how you traverse the model, you
can avoid seeing element declaration references if you aren't interested in
seeing them.


Peter Stibrany wrote:

> Hello.
>
> Another "returns null" question :-)
> When I call getName() method of XSDElementDeclaration, it gives me null,
> although getQName() returns correct answer. How can I get element name
> without "...:" prefix?
>
> Thank you.
> -Peter Stibrany
Re: getName() returns null too [message #40597 is a reply to message #40511] Mon, 05 April 2004 15:40 Go to previous message
Eclipse UserFriend
Originally posted by: stibrany.tenax.sk

Ed Merks wrote:

> Peter,

> An XSDElementDeclaration is used to represent either the actual "abstract"
> element declaration or an element declaration reference, in which case all
> the properties are null and the getResolveElementDeclaration is needed to
> navigate to the actual declaration with all the properties, like name, that
> you want to examine. Again, depending on how you traverse the model, you
> can avoid seeing element declaration references if you aren't interested in
> seeing them.

Thank you for answer. I think I am starting to understand this "abstract"
versus "concrete" thing. When I am reading XML Schema specs, they are
mostly talking about "abstract" view of schema, and that is what I really
want. I will more carefully look at XSD methods and double-check before I
post my questions here.
-Peter Stibrany
Re: getName() returns null too [message #585093 is a reply to message #40362] Mon, 05 April 2004 06:38 Go to previous message
Eclipse UserFriend
Peter,

An XSDElementDeclaration is used to represent either the actual "abstract"
element declaration or an element declaration reference, in which case all
the properties are null and the getResolveElementDeclaration is needed to
navigate to the actual declaration with all the properties, like name, that
you want to examine. Again, depending on how you traverse the model, you
can avoid seeing element declaration references if you aren't interested in
seeing them.


Peter Stibrany wrote:

> Hello.
>
> Another "returns null" question :-)
> When I call getName() method of XSDElementDeclaration, it gives me null,
> although getQName() returns correct answer. How can I get element name
> without "...:" prefix?
>
> Thank you.
> -Peter Stibrany
Re: getName() returns null too [message #585162 is a reply to message #40511] Mon, 05 April 2004 15:40 Go to previous message
Eclipse UserFriend
Ed Merks wrote:

> Peter,

> An XSDElementDeclaration is used to represent either the actual "abstract"
> element declaration or an element declaration reference, in which case all
> the properties are null and the getResolveElementDeclaration is needed to
> navigate to the actual declaration with all the properties, like name, that
> you want to examine. Again, depending on how you traverse the model, you
> can avoid seeing element declaration references if you aren't interested in
> seeing them.

Thank you for answer. I think I am starting to understand this "abstract"
versus "concrete" thing. When I am reading XML Schema specs, they are
mostly talking about "abstract" view of schema, and that is what I really
want. I will more carefully look at XSD methods and double-check before I
post my questions here.
-Peter Stibrany
Previous Topic:referenced schema feature/reference
Next Topic:Announcement: FAQ update planned
Goto Forum:
  


Current Time: Wed Jul 23 19:33:13 EDT 2025

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

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

Back to the top