Hi, XObject represents an XPath object. It acts as a base class for XPath type objects like XNumber, XString, XNodeSet... which represent XPath number, string, nodeset... respectively. It basically wraps a java Object and has methods to check equality/inequality of 2 objects and methods to cast an object to a boolean, a string, a number... which are implemented by all the derived classes.
The result of an XPath expression which could be a number or a nodeset or... is returned in the form of an XObject. It basically helps in treating any XPath type as an object. HTH, Pavani Karthik Gurumurthy wrote : > > I'm trying to use XPathAPI for searching nodes in a DOM document. > i'm fine with selectSingleNode() and such methids and i found it to be > better than using DOM apis. > Can someone educate me on XObject? where it c'd be extremely useful > From what i c'd see it probably helps me to treat a node as a number / > string if am sure > about it from the onset? > i saw a couple of methods which help me compare 2 XObjects. > > thanks for your help! > > regards > karthik. -- Pavani Mukthipudi Sun Microsystems, Inc. Phone: 080 - 2298989 Extn: 87390
