It's just because in Java one does not normally expect to have backpointers, so 
if you need that we thought it was reasonable to switch to 'XML mode'. And, as 
far as I know, and please correct me if I am wrong, XmlBeans is the only 
Schema-Java binding tool that gives you this ability :-)

Radu

-----Original Message-----
From: Artur Opala [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 27, 2005 8:00 AM
To: dev@xmlbeans.apache.org
Subject: RE: Why XmlObject hasn't method: getParent()?


I know, but why not one method instead?

-----Original Message-----
From: Springer, Ian P. [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 27, 2005 4:48 PM
To: dev@xmlbeans.apache.org
Subject: RE: Why XmlObject hasn't method: getParent()?


Hi,

You can use: 

XmlCursor cursor = xbean.newCursor();
cursor.toParent();
XmlObject parentXbean = cursor.getObject();
cursor.dispose();

Ian

| -----Original Message-----
| From: Artur Opala [mailto:[EMAIL PROTECTED]
| Sent: Wednesday, July 27, 2005 6:57 AM
| To: dev@xmlbeans.apache.org
| Subject: Why XmlObject hasn't method: getParent()?
| 
| 
|  Why XmlObject hasn't method: getParent()?
| 
| 
| ---------------------------------------------------------------------
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
| 
| 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to