What is the elementName here ? Is it the QName for an element ?

On Fri, Jun 13, 2008 at 4:05 AM, Ronny Priv <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I've got problems removing a certain element from a schema.
>
> I tried the following code and an item seems to be removed from the schema 
> but it is not the correct one. So I'm wondering if it is a bug or am I doing 
> something wrong here?
>
> XmlSchemaObjectTable elements = schema.getElements();
> XmlSchemaObject wrongElement = elements.getItem(elementName);
> schema.getItems().remove(wrongElement);
>
> thanks
> ronny
> --
> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
>



-- 
Ajith Ranabahu

Reading, after a certain age, diverts the mind too much from its
creative pursuits. Any man who reads too much and uses his own brain
too little falls into lazy habits of thinking - Albert Einstein

Reply via email to