public override object GetValue(object o) {
     if (null == o)
         throw new ArgumentNullException("XPathNodeViewPropertyDescriptor.GetValue");
     XPathNodeView xiv = (XPathNodeView)o;
     if (xiv.Collection.RowShape != this.rowShape)
         throw new ArgumentException("XPathNodeViewPropertyDescriptor.GetValue");
     object val = xiv.Column(this.colIndex);
     XPathNode nd = val as XPathNode;
     if (null != nd) {
         XPathDocumentNavigator nav = new XPathDocumentNavigator(nd, null);
         XmlSchemaType xst = nd.SchemaType;
         XmlSchemaComplexType xsct = xst as XmlSchemaComplexType;
         if (null == xst || ( (null != xsct) && xsct.IsMixed) ) {
             return nav.InnerXml;
         }
         else {
             return nav.TypedValue;
         }
     }
     return val;
 }
Example #2
0
	    private XPathDocumentNavigator( XPathDocumentNavigator nav ) {
            this.doc = nav.doc;
            this.node = nav.node;
            this.parentOfNs = nav.parentOfNs;
	    }
Example #3
0
 public XPathDocumentEveryChildIterator(XPathDocumentEveryChildIterator it) {
     this.nav      = (XPathDocumentNavigator) it.nav.Clone();
     this.first    = it.first;
     this.position = it.position;
 }
Example #4
0
 internal XPathDocumentEveryChildIterator(XPathDocumentNavigator nav) {
     this.nav   = nav;            
 }
Example #5
0
 internal XPathDocumentChildIterator(XPathDocumentNavigator nav, string name, string namespaceURI) {
     this.nav   = nav;
     this.name  = nav.NameTable.Add(name);
     this.uri   = nav.NameTable.Add(namespaceURI);
 }
Example #6
0
 public XPathDocumentDescendantOrSelfIterator(XPathDocumentNavigator nav, string name, string namespaceURI) : base(nav, name, namespaceURI) {}
Example #7
0
 public XPathDocumentDescendantIterator(XPathDocumentDescendantIterator it) {
     this.nav      = (XPathDocumentNavigator) it.nav.Clone();
     this.name     = it.name;
     this.uri      = it.uri;
     this.level    = it.level;
     this.position = it.position;
 }