void () { PsiFile dtdFile = createFile("test.xml", "<xsd:schema targetNamespace=\"http://foo\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" >" + " <xsd:element name=\"root\">" + " <xsd:complexType>" + " <xsd:sequence minOccurs=\"1\" maxOccurs=\"1\">" + " <xsd:any namespace=\"##other\" minOccurs=\"0\" maxOccurs=\"unbounded\" processContents=\"skip\"/>" + " </xsd:sequence>" + " </xsd:complexType>" + " </xsd:element>" + "</xsd:schema>"); XmlNSDescriptor NSDescriptor = new XmlNSDescriptorImpl((XmlFile)dtdFile); XmlFile xmlFile = (XmlFile)createFile("file.xml", "<foo:root xmlns:foo=\"http://foo\">" + " <foo:a xmlns:a=\"http://bar\" />" + "</foo:root>" ); XmlElementDescriptor rootDescriptor = NSDescriptor.getElementDescriptor(xmlFile.getDocument().getRootTag()); assertNotNull(rootDescriptor); XmlTag aTag = xmlFile.getDocument().getRootTag().findFirstSubTag("foo:a"); assertNotNull(aTag); //XmlElementDescriptor aDescriptor = NSDescriptor.getElementDescriptor(aTag); //assertNull(aDescriptor); }