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

List:       xmlbeans-dev
Subject:    RE: Difference between  XmlObject.schemaType(), and XmlObject.type()
From:       "Radu Preotiuc-Pietro" <radup () bea ! com>
Date:       2005-04-21 20:13:17
Message-ID: 4B2B4C417991364996F035E1EE39E2E102C66A98 () uskiex01 ! bea ! com
[Download RAW message or body]

The difference is:
.type is the statically compiled Schema type corresponding to an
XmlBeans class
.schemaType() is the runtime Schema type corresponding to an XmlObject
instance

It's kind of like the Java ".class" vs ".getClass()"

You mean _textsource in XmlObjectBase. It is the "link" from a given
XmlObject to the Xml store.

Radu

-----Original Message-----
From: Ali, Haneef [mailto:haneef.ali@hp.com] 
Sent: Tuesday, April 12, 2005 1:20 PM
To: user@xmlbeans.apache.org; dev@xmlbeans.apache.org
Subject: Difference between XmlObject.schemaType(), and XmlObject.type()

Hi,

What is the difference between following schemaType object?
	
	SchemaType lt1 = XmlObject.schemaType();
	SchemaType lt2 = XmlObject.type;

I parsed a xml using XmlObject.parse( File("SomeFile"));, to check the
schematype associated with the parsed object. Both of the schemaType
looks different especailly  Qname, CompexVariety etc.

Also what is  "_textSource"?

Haneef

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


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

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