Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Find an XSD element
Find an XSD element [message #18732] Wed, 16 April 2003 12:38 Go to next message
Eclipse UserFriend
Originally posted by: brc35.mailcity.com

Hi,

I have a schema file (xsd) which I loaded into a XSDSchemaImpl object.
Starting from instance, I want to get information about an element that I
specify it by name, but I don't know where is into the schema tree. I try
to use resolveElementDeclaration method for the schema object, but the
test "if(element.getContainer() != null)" tell me that required element is
not the valid element from the xsd file, even into the schema exist an
element with the this name.
There is somebody that can help me?

Thank you....

Radu B.
Re: Find an XSD element [message #18817 is a reply to message #18732] Wed, 16 April 2003 16:08 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Radu,

Is it a global element declaration? Only global element declarations can be
looked up directly from the schema.


Radu Bretean wrote:

> Hi,
>
> I have a schema file (xsd) which I loaded into a XSDSchemaImpl object.
> Starting from instance, I want to get information about an element that I
> specify it by name, but I don't know where is into the schema tree. I try
> to use resolveElementDeclaration method for the schema object, but the
> test "if(element.getContainer() != null)" tell me that required element is
> not the valid element from the xsd file, even into the schema exist an
> element with the this name.
> There is somebody that can help me?
>
> Thank you....
>
> Radu B.
Re: Find an XSD element [message #567997 is a reply to message #18732] Wed, 16 April 2003 16:08 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Radu,

Is it a global element declaration? Only global element declarations can be
looked up directly from the schema.


Radu Bretean wrote:

> Hi,
>
> I have a schema file (xsd) which I loaded into a XSDSchemaImpl object.
> Starting from instance, I want to get information about an element that I
> specify it by name, but I don't know where is into the schema tree. I try
> to use resolveElementDeclaration method for the schema object, but the
> test "if(element.getContainer() != null)" tell me that required element is
> not the valid element from the xsd file, even into the schema exist an
> element with the this name.
> There is somebody that can help me?
>
> Thank you....
>
> Radu B.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Help needed analysing a XSD schema w/ complex types
Next Topic:Help needed analysing a XSD schema w/ complex types
Goto Forum:
  


Current Time: Fri Apr 19 23:54:21 GMT 2024

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

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

Back to the top