[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-user
Subject:    Getting the enclosing Document from a Type
From:       Sam CRP <samcrp11 () gmail ! com>
Date:       2010-05-11 14:11:38
Message-ID: AANLkTin81hiYGJGIYRIlySC_dlIhx7Vgf1S8vFSn7IUW () mail ! gmail ! com
[Download RAW message or body]

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.

[Attachment #3 (text/html)]

Hello,<br><br>I&#39;m using the substitute() method as explained in a previous \
thread:<br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid \
rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote"><pre> <font \
style="font-family: arial,helvetica,sans-serif;" size="2">xmlObject = \
xmlObject.substitute(ClassADocument.type.getDocumentElementName(), \
ClassAType.type);</font><br></pre></blockquote>I was just wondering if there is a way \
to retrieve <font><font style="font-family: arial,helvetica,sans-serif;" \
size="2">ClassADocument.type knowing </font></font><font><font style="font-family: \
arial,helvetica,sans-serif;" size="2">ClassAType.type</font></font> ? Or maybe using \
directly <font><font style="font-family: arial,helvetica,sans-serif;" \
size="2">ClassAType ?<br> <br>The case is that I have an evolving list of different \
</font></font><font><font style="font-family: arial,helvetica,sans-serif;" \
size="2">ClassAType and it would be great if I don&#39;t need to worry about \
hard-coding the </font></font><font><font style="font-family: \
arial,helvetica,sans-serif;" size="2">ClassAType/</font></font><font><font \
style="font-family: arial,helvetica,sans-serif;" size="2">ClassADocument relationship \
each time.<br> <br>Thanks in advance for any help or hint.<br><br>Best \
regards.<br></font></font>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic