Find an XSD element [message #18732] |
Wed, 16 April 2003 12:38 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Ed Merks Messages: 33264 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/
|
|
|
Powered by
FUDForum. Page generated in 0.03067 seconds