Getting the enclosing Document from a Type
Sam CRP <[email protected]> Tue, 11 May 2010 16:11:38 +0200
| Newsgroups | gmane.text.xml.xmlbeans.user |
|---|---|
| Message-ID | <[email protected]> |
Hello, I'm using the substitute() method as explained in a previous thread: > xmlObject = xmlObject.substitute(ClassADocument.type.getDocumentElementName(), ClassAType.type); > > I was just wondering if there is a way to retrieve ClassADocument.type knowing ClassAType.type ? Or maybe using directly ClassAType ? The case is that I have an evolving list of different ClassAType and it would be great if I don't need to worry about hard-coding the ClassAType/ClassADocument relationship each time. Thanks in advance for any help or hint. Best regards.