Skip to main content



      Home
Home » Archived » XML Schema Definition (XSD) » Find an XSD element
Find an XSD element [message #18732] Wed, 16 April 2003 08: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 12: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 12:08 Go to previous message
Eclipse UserFriend
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.
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: Wed Jul 02 19:51:07 EDT 2025

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

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

Back to the top