Provides a cursor model for navigating and editing XML data. More...
Inherits System::Xml::XPath::XPathItem, System::Xml::XPath::IXPathNavigable, and System::Xml::IXmlNamespaceResolver.
Public Types | |
using | Ptr = SharedPtr< XPathNavigator > |
An alias for shared pointer to an instance of this class. More... | |
Public Types inherited from System::Xml::XPath::XPathItem | |
using | Ptr = SharedPtr< XPathItem > |
An alias for shared pointer to an instance of this class. More... | |
Public Types inherited from System::Object | |
typedef SmartPtr< Object > | ptr |
Alias for smart pointer type. More... | |
Public Member Functions | |
ASPOSECPP_SHARED_API bool | get_IsNode () override |
ASPOSECPP_SHARED_API SharedPtr< System::Xml::Schema::XmlSchemaType > | get_XmlType () override |
ASPOSECPP_SHARED_API SharedPtr< Object > | get_TypedValue () override |
ASPOSECPP_SHARED_API TypeInfo | get_ValueType () override |
ASPOSECPP_SHARED_API bool | get_ValueAsBoolean () override |
ASPOSECPP_SHARED_API DateTime | get_ValueAsDateTime () override |
ASPOSECPP_SHARED_API double | get_ValueAsDouble () override |
ASPOSECPP_SHARED_API int32_t | get_ValueAsInt () override |
ASPOSECPP_SHARED_API int64_t | get_ValueAsLong () override |
virtual ASPOSECPP_SHARED_API SharedPtr< XmlNameTable > | get_NameTable ()=0 |
virtual ASPOSECPP_SHARED_API XPathNodeType | get_NodeType ()=0 |
virtual ASPOSECPP_SHARED_API String | get_LocalName ()=0 |
virtual ASPOSECPP_SHARED_API String | get_Name ()=0 |
virtual ASPOSECPP_SHARED_API String | get_NamespaceURI ()=0 |
virtual ASPOSECPP_SHARED_API String | get_Prefix ()=0 |
virtual ASPOSECPP_SHARED_API String | get_BaseURI ()=0 |
virtual ASPOSECPP_SHARED_API bool | get_IsEmptyElement ()=0 |
virtual ASPOSECPP_SHARED_API String | get_XmlLang () |
virtual ASPOSECPP_SHARED_API SharedPtr< Object > | get_UnderlyingObject () |
virtual ASPOSECPP_SHARED_API bool | get_HasAttributes () |
virtual ASPOSECPP_SHARED_API bool | get_HasChildren () |
virtual ASPOSECPP_SHARED_API SharedPtr< System::Xml::Schema::IXmlSchemaInfo > | get_SchemaInfo () |
virtual ASPOSECPP_SHARED_API bool | get_CanEdit () |
virtual ASPOSECPP_SHARED_API String | get_OuterXml () |
virtual ASPOSECPP_SHARED_API void | set_OuterXml (String value) |
virtual ASPOSECPP_SHARED_API String | get_InnerXml () |
virtual ASPOSECPP_SHARED_API void | set_InnerXml (String value) |
virtual ASPOSECPP_SHARED_API void | SetValue (String value) |
virtual ASPOSECPP_SHARED_API void | SetTypedValue (SharedPtr< Object > typedValue) |
ASPOSECPP_SHARED_API SharedPtr< Object > | ValueAs (const TypeInfo &returnType, SharedPtr< IXmlNamespaceResolver > nsResolver) override |
ASPOSECPP_SHARED_API SharedPtr< XPathNavigator > | CreateNavigator () override |
ASPOSECPP_SHARED_API String | LookupNamespace (const String &prefix) override |
ASPOSECPP_SHARED_API String | LookupPrefix (const String &namespaceURI) override |
ASPOSECPP_SHARED_API SharedPtr< Collections::Generic::IDictionary< String, String > > | GetNamespacesInScope (XmlNamespaceScope scope) override |
virtual ASPOSECPP_SHARED_API SharedPtr< XPathNavigator > | Clone ()=0 |
virtual ASPOSECPP_SHARED_API SharedPtr< XmlReader > | ReadSubtree () |
virtual ASPOSECPP_SHARED_API void | WriteSubtree (SharedPtr< XmlWriter > writer) |
virtual ASPOSECPP_SHARED_API String | GetAttribute (String localName, String namespaceURI) |
virtual ASPOSECPP_SHARED_API bool | MoveToAttribute (String localName, String namespaceURI) |
virtual ASPOSECPP_SHARED_API bool | MoveToFirstAttribute ()=0 |
virtual ASPOSECPP_SHARED_API bool | MoveToNextAttribute ()=0 |
virtual ASPOSECPP_SHARED_API String | GetNamespace (String name) |
virtual ASPOSECPP_SHARED_API bool | MoveToNamespace (String name) |
virtual ASPOSECPP_SHARED_API bool | MoveToFirstNamespace (XPathNamespaceScope namespaceScope)=0 |
virtual ASPOSECPP_SHARED_API bool | MoveToNextNamespace (XPathNamespaceScope namespaceScope)=0 |
ASPOSECPP_SHARED_API bool | MoveToFirstNamespace () |
ASPOSECPP_SHARED_API bool | MoveToNextNamespace () |
virtual ASPOSECPP_SHARED_API bool | MoveToNext ()=0 |
virtual ASPOSECPP_SHARED_API bool | MoveToPrevious ()=0 |
virtual ASPOSECPP_SHARED_API bool | MoveToFirst () |
virtual ASPOSECPP_SHARED_API bool | MoveToFirstChild ()=0 |
virtual ASPOSECPP_SHARED_API bool | MoveToParent ()=0 |
virtual ASPOSECPP_SHARED_API void | MoveToRoot () |
Moves the XPathNavigator to the root node that the current node belongs to. More... | |
virtual ASPOSECPP_SHARED_API bool | MoveTo (SharedPtr< XPathNavigator > other)=0 |
virtual ASPOSECPP_SHARED_API bool | MoveToId (String id)=0 |
virtual ASPOSECPP_SHARED_API bool | MoveToChild (String localName, String namespaceURI) |
virtual ASPOSECPP_SHARED_API bool | MoveToChild (XPathNodeType type) |
virtual ASPOSECPP_SHARED_API bool | MoveToFollowing (String localName, String namespaceURI) |
virtual ASPOSECPP_SHARED_API bool | MoveToFollowing (String localName, String namespaceURI, SharedPtr< XPathNavigator > end) |
virtual ASPOSECPP_SHARED_API bool | MoveToFollowing (XPathNodeType type) |
virtual ASPOSECPP_SHARED_API bool | MoveToFollowing (XPathNodeType type, SharedPtr< XPathNavigator > end) |
virtual ASPOSECPP_SHARED_API bool | MoveToNext (String localName, String namespaceURI) |
virtual ASPOSECPP_SHARED_API bool | MoveToNext (XPathNodeType type) |
virtual ASPOSECPP_SHARED_API bool | IsSamePosition (SharedPtr< XPathNavigator > other)=0 |
virtual ASPOSECPP_SHARED_API bool | IsDescendant (SharedPtr< XPathNavigator > nav) |
virtual ASPOSECPP_SHARED_API XmlNodeOrder | ComparePosition (SharedPtr< XPathNavigator > nav) |
virtual ASPOSECPP_SHARED_API bool | CheckValidity (SharedPtr< System::Xml::Schema::XmlSchemaSet > schemas, System::Xml::Schema::ValidationEventHandler validationEventHandler) |
virtual ASPOSECPP_SHARED_API SharedPtr< XPathExpression > | Compile (String xpath) |
virtual ASPOSECPP_SHARED_API SharedPtr< XPathNavigator > | SelectSingleNode (String xpath) |
virtual ASPOSECPP_SHARED_API SharedPtr< XPathNavigator > | SelectSingleNode (String xpath, SharedPtr< IXmlNamespaceResolver > resolver) |
virtual ASPOSECPP_SHARED_API SharedPtr< XPathNavigator > | SelectSingleNode (SharedPtr< XPathExpression > expression) |
virtual ASPOSECPP_SHARED_API SharedPtr< XPathNodeIterator > | Select (String xpath) |
virtual ASPOSECPP_SHARED_API SharedPtr< XPathNodeIterator > | Select (String xpath, SharedPtr< IXmlNamespaceResolver > resolver) |
virtual ASPOSECPP_SHARED_API SharedPtr< XPathNodeIterator > | Select (SharedPtr< XPathExpression > expr) |
virtual ASPOSECPP_SHARED_API SharedPtr< Object > | Evaluate (String xpath) |
virtual ASPOSECPP_SHARED_API SharedPtr< Object > | Evaluate (String xpath, SharedPtr< IXmlNamespaceResolver > resolver) |
virtual ASPOSECPP_SHARED_API SharedPtr< Object > | Evaluate (SharedPtr< XPathExpression > expr) |
virtual ASPOSECPP_SHARED_API SharedPtr< Object > | Evaluate (SharedPtr< XPathExpression > expr, SharedPtr< XPathNodeIterator > context) |
virtual ASPOSECPP_SHARED_API bool | Matches (SharedPtr< XPathExpression > expr) |
virtual ASPOSECPP_SHARED_API bool | Matches (String xpath) |
virtual ASPOSECPP_SHARED_API SharedPtr< XPathNodeIterator > | SelectChildren (XPathNodeType type) |
virtual ASPOSECPP_SHARED_API SharedPtr< XPathNodeIterator > | SelectChildren (String name, String namespaceURI) |
virtual ASPOSECPP_SHARED_API SharedPtr< XPathNodeIterator > | SelectAncestors (XPathNodeType type, bool matchSelf) |
virtual ASPOSECPP_SHARED_API SharedPtr< XPathNodeIterator > | SelectAncestors (String name, String namespaceURI, bool matchSelf) |
virtual ASPOSECPP_SHARED_API SharedPtr< XPathNodeIterator > | SelectDescendants (XPathNodeType type, bool matchSelf) |
virtual ASPOSECPP_SHARED_API SharedPtr< XPathNodeIterator > | SelectDescendants (String name, String namespaceURI, bool matchSelf) |
virtual ASPOSECPP_SHARED_API SharedPtr< XmlWriter > | PrependChild () |
virtual ASPOSECPP_SHARED_API SharedPtr< XmlWriter > | AppendChild () |
virtual ASPOSECPP_SHARED_API SharedPtr< XmlWriter > | InsertAfter () |
virtual ASPOSECPP_SHARED_API SharedPtr< XmlWriter > | InsertBefore () |
virtual ASPOSECPP_SHARED_API SharedPtr< XmlWriter > | CreateAttributes () |
virtual ASPOSECPP_SHARED_API SharedPtr< XmlWriter > | ReplaceRange (SharedPtr< XPathNavigator > lastSiblingToReplace) |
virtual ASPOSECPP_SHARED_API void | ReplaceSelf (String newNode) |
virtual ASPOSECPP_SHARED_API void | ReplaceSelf (SharedPtr< XmlReader > newNode) |
virtual ASPOSECPP_SHARED_API void | ReplaceSelf (SharedPtr< XPathNavigator > newNode) |
virtual ASPOSECPP_SHARED_API void | AppendChild (String newChild) |
virtual ASPOSECPP_SHARED_API void | AppendChild (SharedPtr< XmlReader > newChild) |
virtual ASPOSECPP_SHARED_API void | AppendChild (SharedPtr< XPathNavigator > newChild) |
virtual ASPOSECPP_SHARED_API void | PrependChild (String newChild) |
virtual ASPOSECPP_SHARED_API void | PrependChild (SharedPtr< XmlReader > newChild) |
virtual ASPOSECPP_SHARED_API void | PrependChild (SharedPtr< XPathNavigator > newChild) |
virtual ASPOSECPP_SHARED_API void | InsertBefore (String newSibling) |
virtual ASPOSECPP_SHARED_API void | InsertBefore (SharedPtr< XmlReader > newSibling) |
virtual ASPOSECPP_SHARED_API void | InsertBefore (SharedPtr< XPathNavigator > newSibling) |
virtual ASPOSECPP_SHARED_API void | InsertAfter (String newSibling) |
virtual ASPOSECPP_SHARED_API void | InsertAfter (SharedPtr< XmlReader > newSibling) |
virtual ASPOSECPP_SHARED_API void | InsertAfter (SharedPtr< XPathNavigator > newSibling) |
virtual ASPOSECPP_SHARED_API void | DeleteRange (SharedPtr< XPathNavigator > lastSiblingToDelete) |
virtual ASPOSECPP_SHARED_API void | DeleteSelf () |
virtual ASPOSECPP_SHARED_API void | PrependChildElement (String prefix, String localName, String namespaceURI, String value) |
virtual ASPOSECPP_SHARED_API void | AppendChildElement (String prefix, String localName, String namespaceURI, String value) |
virtual ASPOSECPP_SHARED_API void | InsertElementBefore (String prefix, String localName, String namespaceURI, String value) |
virtual ASPOSECPP_SHARED_API void | InsertElementAfter (String prefix, String localName, String namespaceURI, String value) |
virtual ASPOSECPP_SHARED_API void | CreateAttribute (String prefix, String localName, String namespaceURI, String value) |
ASPOSECPP_SHARED_API String | ToString () const override |
Public Member Functions inherited from System::Xml::XPath::XPathItem | |
virtual ASPOSECPP_SHARED_API String | get_Value ()=0 |
virtual ASPOSECPP_SHARED_API SharedPtr< Object > | ValueAs (const TypeInfo &returnType) |
Public Member Functions inherited from System::Object | |
ASPOSECPP_SHARED_API | Object () |
Creates object. Initializes all internal data structures. More... | |
virtual ASPOSECPP_SHARED_API | ~Object () |
Destroys object. Frees all internal data structures. More... | |
ASPOSECPP_SHARED_API | Object (Object const &x) |
Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
Object & | operator= (Object const &x) |
Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
Object * | SharedRefAdded () |
Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
int | SharedRefRemovedSafe () |
Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
int | RemovedSharedRefs (int count) |
Decreases shared reference count by specified value. More... | |
Detail::SmartPtrCounter * | WeakRefAdded () |
Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
void | WeakRefRemoved () |
Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
Detail::SmartPtrCounter * | GetCounter () |
Gets reference counter data structure associated with the object. More... | |
int | SharedCount () const |
Gets current value of shared reference counter. More... | |
ASPOSECPP_SHARED_API void | Lock () |
Implements C# lock() statement locking. Call directly or use LockContext sentry object. More... | |
ASPOSECPP_SHARED_API void | Unlock () |
Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More... | |
virtual ASPOSECPP_SHARED_API bool | Equals (ptr obj) |
Compares objects using C# Object.Equals semantics. More... | |
virtual ASPOSECPP_SHARED_API int32_t | GetHashCode () const |
Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More... | |
virtual ASPOSECPP_SHARED_API ptr | MemberwiseClone () const |
Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More... | |
virtual ASPOSECPP_SHARED_API const TypeInfo & | GetType () const |
Gets actual type of object. Analog of C# System.Object.GetType() call. More... | |
virtual ASPOSECPP_SHARED_API bool | Is (const TypeInfo &targetType) const |
Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More... | |
virtual ASPOSECPP_SHARED_API void | SetTemplateWeakPtr (uint32_t argument) |
Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More... | |
virtual ASPOSECPP_SHARED_API bool | FastCast (const Details::FastRttiBase &helper, void **out_ptr) const |
For internal purposes only. More... | |
template<> | |
bool | Equals (float const &objA, float const &objB) |
template<> | |
bool | Equals (double const &objA, double const &objB) |
template<> | |
bool | ReferenceEquals (String const &str, std::nullptr_t) |
template<> | |
bool | ReferenceEquals (String const &str1, String const &str2) |
Static Public Member Functions | |
static ASPOSECPP_SHARED_API SharedPtr< Collections::Generic::IEqualityComparer< SharedPtr< XPathNavigator > > > | get_NavigatorComparer () |
Static Public Member Functions inherited from System::Object | |
static bool | ReferenceEquals (ptr const &objA, ptr const &objB) |
Compares objects by reference. More... | |
template<typename T > | |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, T const &objB) |
Compares objects by reference. More... | |
template<typename T > | |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, std::nullptr_t) |
Reference-compares value type object with nullptr. More... | |
template<typename T1 , typename T2 > | |
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
Compares reference type objects in C# style. More... | |
template<typename T1 , typename T2 > | |
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
Compares value type objects in C# style. More... | |
static const TypeInfo & | Type () |
Implements C# typeof(System.Object) construct. More... | |
Provides a cursor model for navigating and editing XML data.
An alias for shared pointer to an instance of this class.
|
virtual |
Returns an XmlWriter object used to create one or more new child nodes at the end of the list of child nodes of the current node.
InvalidOperationException | The current node the XPathNavigator is positioned on is not the root node or an element node. |
NotSupportedException | The XPathNavigator does not support editing. |
|
virtual |
Creates a new child node at the end of the list of child nodes of the current node using the XML data string specified.
newChild | The XML data string for the new child node. |
ArgumentNullException | The XML data string parameter is nullptr . |
InvalidOperationException | The current node the XPathNavigator is positioned on is not the root node or an element node. |
NotSupportedException | The XPathNavigator does not support editing. |
XmlException | The XML data string parameter is not well-formed. |
|
virtual |
Creates a new child node at the end of the list of child nodes of the current node using the XML contents of the XmlReader object specified.
newChild | An XmlReader object positioned on the XML data for the new child node. |
ArgumentException | The XmlReader object is in an error state or closed. |
ArgumentNullException | The XmlReader object parameter is nullptr . |
InvalidOperationException | The current node the XPathNavigator is positioned on is not the root node or an element node. |
NotSupportedException | The XPathNavigator does not support editing. |
XmlException | The XML contents of the XmlReader object parameter is not well-formed. |
|
virtual |
Creates a new child node at the end of the list of child nodes of the current node using the nodes in the XPathNavigator specified.
newChild | An XPathNavigator object positioned on the node to add as the new child node. |
ArgumentNullException | The XPathNavigator object parameter is nullptr . |
InvalidOperationException | The current node the XPathNavigator is positioned on is not the root node or an element node. |
NotSupportedException | The XPathNavigator does not support editing. |
|
virtual |
Creates a new child element node at the end of the list of child nodes of the current node using the namespace prefix, local name and namespace URI specified with the value specified.
prefix | The namespace prefix of the new child element node (if any). |
localName | The local name of the new child element node (if any). |
namespaceURI | The namespace URI of the new child element node (if any). String::Empty and nullptr are equivalent. |
value | The value of the new child element node. If String::Empty or nullptr are passed, an empty element is created. |
InvalidOperationException | The current node the XPathNavigator is positioned on is not the root node or an element node. |
NotSupportedException | The XPathNavigator does not support editing. |
|
virtual |
Verifies that the XML data in the XPathNavigator conforms to the XML Schema definition language (XSD) schema provided.
schemas | The XmlSchemaSet containing the schemas used to validate the XML data contained in the XPathNavigator. |
validationEventHandler | The ValidationEventHandler that receives information about schema validation warnings and errors. |
true
if no schema validation errors occurred; otherwise, false
. XmlSchemaValidationException | A schema validation error occurred, and no ValidationEventHandler was specified to handle validation errors. |
InvalidOperationException | The XPathNavigator is positioned on a node that is not an element, attribute, or the root node or there is not type information to perform validation. |
ArgumentException | The method was called with an XmlSchemaSet parameter when the XPathNavigator was not positioned on the root node of the XML data. |
|
pure virtual |
When overridden in a derived class, creates a new XPathNavigator positioned at the same node as this XPathNavigator.
|
virtual |
Compares the position of the current XPathNavigator with the position of the XPathNavigator specified.
nav | The XPathNavigator to compare against. |
|
virtual |
Compiles a string representing an XPath expression and returns an XPathExpression object.
xpath | A string representing an XPath expression. |
|
virtual |
Creates an attribute node on the current element node using the namespace prefix, local name and namespace URI specified with the value specified.
prefix | The namespace prefix of the new attribute node (if any). |
localName | The local name of the new attribute node which cannot String::Empty or nullptr . |
namespaceURI | The namespace URI for the new attribute node (if any). |
value | The value of the new attribute node. If String::Empty or nullptr are passed, an empty attribute node is created. |
InvalidOperationException | The XPathNavigator is not positioned on an element node. |
NotSupportedException | The XPathNavigator does not support editing. |
|
virtual |
Returns an XmlWriter object used to create new attributes on the current element.
InvalidOperationException | The XPathNavigator is not positioned on an element node. |
NotSupportedException | The XPathNavigator does not support editing. |
|
overridevirtual |
Returns a copy of the XPathNavigator.
Implements System::Xml::XPath::IXPathNavigable.
|
virtual |
Deletes a range of sibling nodes from the current node to the node specified.
lastSiblingToDelete | An XPathNavigator positioned on the last sibling node in the range to delete. |
ArgumentNullException | The XPathNavigator specified is nullptr . |
NotSupportedException | The XPathNavigator does not support editing. |
InvalidOperationException | The last node to delete specified is not a valid sibling node of the current node. |
|
virtual |
Deletes the current node and its child nodes.
InvalidOperationException | The XPathNavigator is positioned on a node that cannot be deleted such as the root node or a namespace node. |
NotSupportedException | The XPathNavigator does not support editing. |
|
virtual |
Evaluates the specified XPath expression and returns the typed result.
xpath | A string representing an XPath expression that can be evaluated. |
|
virtual |
Evaluates the specified XPath expression and returns the typed result, using the IXmlNamespaceResolver object specified to resolve namespace prefixes in the XPath expression.
xpath | A string representing an XPath expression that can be evaluated. |
resolver | The IXmlNamespaceResolver object used to resolve namespace prefixes in the XPath expression. |
|
virtual |
Evaluates the XPathExpression and returns the typed result.
expr | An XPathExpression that can be evaluated. |
|
virtual |
Uses the supplied context to evaluate the XPathExpression, and returns the typed result.
expr | An XPathExpression that can be evaluated. |
context | An XPathNodeIterator that points to the selected node set that the evaluation is to be performed on. |
|
pure virtual |
When overridden in a derived class, gets the base URI for the current node.
|
virtual |
Returns a value that indicates whether the XPathNavigator can edit the underlying XML data.
true
if the XPathNavigator can edit the underlying XML data; otherwise, false
.
|
virtual |
Returns a value that indicates whether the current node has any attributes.
true
if the current node has attributes; returns false
if the current node has no attributes, or if the XPathNavigator is not positioned on an element node.
|
virtual |
Returns a value that indicates whether the current node has any child nodes.
true
if the current node has any child nodes; otherwise, false
.
|
virtual |
Returns the markup representing the child nodes of the current node.
|
pure virtual |
When overridden in a derived class, gets a value that indicates whether the current node is an empty element without an end element tag.
true
if the current node is an empty element; otherwise, false
.
|
overridevirtual |
Returns a value that indicates if the current node represents an XPath node.
true
. Implements System::Xml::XPath::XPathItem.
|
pure virtual |
When overridden in a derived class, gets the XPathNavigator::get_Name of the current node without any namespace prefix.
|
pure virtual |
When overridden in a derived class, gets the qualified name of the current node.
|
pure virtual |
When overridden in a derived class, gets the namespace URI of the current node.
|
pure virtual |
When overridden in a derived class, gets the XmlNameTable of the XPathNavigator.
|
static |
Returns an Collections::IEqualityComparer used for equality comparison of XPathNavigator objects.
|
pure virtual |
When overridden in a derived class, gets the XPathNodeType of the current node.
|
virtual |
Returns the markup representing the opening and closing tags of the current node and its child nodes.
|
pure virtual |
When overridden in a derived class, gets the namespace prefix associated with the current node.
|
virtual |
Returns the schema information that has been assigned to the current node as a result of schema validation.
|
overridevirtual |
Returns the current node as a boxed object of the most appropriate type.
Implements System::Xml::XPath::XPathItem.
|
virtual |
Used by XPathNavigator implementations which provide a "virtualized" XML view over a store, to provide access to underlying objects.
nullptr
.
|
overridevirtual |
Returns the current node's value as a Boolean.
FormatException | The current node's string value cannot be converted to a Boolean. |
InvalidCastException | The attempted cast to Boolean is not valid. |
Implements System::Xml::XPath::XPathItem.
|
overridevirtual |
Returns the current node's value as a DateTime.
FormatException | The current node's string value cannot be converted to a DateTime. |
InvalidCastException | The attempted cast to DateTime is not valid. |
Implements System::Xml::XPath::XPathItem.
|
overridevirtual |
Returns the current node's value as a Double.
FormatException | The current node's string value cannot be converted to a Double. |
InvalidCastException | The attempted cast to Double is not valid. |
Implements System::Xml::XPath::XPathItem.
|
overridevirtual |
Returns the current node's value as an Int32.
FormatException | The current node's string value cannot be converted to a Int32. |
InvalidCastException | The attempted cast to Int32 is not valid. |
Implements System::Xml::XPath::XPathItem.
|
overridevirtual |
Returns the current node's value as an Int64.
FormatException | The current node's string value cannot be converted to a Int64. |
InvalidCastException | The attempted cast to Int64 is not valid. |
Implements System::Xml::XPath::XPathItem.
|
overridevirtual |
Returns the type of the current node.
Implements System::Xml::XPath::XPathItem.
|
virtual |
Returns the xml:lang
scope for the current node.
xml:lang
scope, or String::Empty if the current node has no xml:lang
scope value to return.
|
overridevirtual |
Returns the XmlSchemaType information for the current node.
nullptr
. Implements System::Xml::XPath::XPathItem.
|
virtual |
Returns the value of the attribute with the specified local name and namespace URI.
localName | The local name of the attribute. localName is case-sensitive. |
namespaceURI | The namespace URI of the attribute. |
|
virtual |
Returns the value of the namespace node corresponding to the specified local name.
name | The local name of the namespace node. |
|
overridevirtual |
Returns the in-scope namespaces of the current node.
scope | An XmlNamespaceScope value specifying the namespaces to return. |
Implements System::Xml::IXmlNamespaceResolver.
|
virtual |
Returns an XmlWriter object used to create a new sibling node after the currently selected node.
InvalidOperationException | The position of the XPathNavigator does not allow a new sibling node to be inserted after the current node. |
NotSupportedException | The XPathNavigator does not support editing. |
|
virtual |
Creates a new sibling node after the currently selected node using the XML string specified.
newSibling | The XML data string for the new sibling node. |
ArgumentNullException | The XML string parameter is nullptr . |
InvalidOperationException | The position of the XPathNavigator does not allow a new sibling node to be inserted after the current node. |
NotSupportedException | The XPathNavigator does not support editing. |
XmlException | The XML string parameter is not well-formed. |
|
virtual |
Creates a new sibling node after the currently selected node using the XML contents of the XmlReader object specified.
newSibling | An XmlReader object positioned on the XML data for the new sibling node. |
ArgumentException | The XmlReader object is in an error state or closed. |
ArgumentNullException | The XmlReader object parameter is nullptr . |
InvalidOperationException | The position of the XPathNavigator does not allow a new sibling node to be inserted after the current node. |
NotSupportedException | The XPathNavigator does not support editing. |
XmlException | The XML contents of the XmlReader object parameter is not well-formed. |
|
virtual |
Creates a new sibling node after the currently selected node using the nodes in the XPathNavigator object specified.
newSibling | An XPathNavigator object positioned on the node to add as the new sibling node. |
ArgumentNullException | The XPathNavigator object parameter is nullptr . |
InvalidOperationException | The position of the XPathNavigator does not allow a new sibling node to be inserted after the current node. |
NotSupportedException | The XPathNavigator does not support editing. |
|
virtual |
Returns an XmlWriter object used to create a new sibling node before the currently selected node.
InvalidOperationException | The position of the XPathNavigator does not allow a new sibling node to be inserted before the current node. |
NotSupportedException | The XPathNavigator does not support editing. |
|
virtual |
Creates a new sibling node before the currently selected node using the XML string specified.
newSibling | The XML data string for the new sibling node. |
ArgumentNullException | The XML string parameter is nullptr . |
InvalidOperationException | The position of the XPathNavigator does not allow a new sibling node to be inserted before the current node. |
NotSupportedException | The XPathNavigator does not support editing. |
XmlException | The XML string parameter is not well-formed. |
|
virtual |
Creates a new sibling node before the currently selected node using the XML contents of the XmlReader object specified.
newSibling | An XmlReader object positioned on the XML data for the new sibling node. |
ArgumentException | The XmlReader object is in an error state or closed. |
ArgumentNullException | The XmlReader object parameter is nullptr . |
InvalidOperationException | The position of the XPathNavigator does not allow a new sibling node to be inserted before the current node. |
NotSupportedException | The XPathNavigator does not support editing. |
XmlException | The XML contents of the XmlReader object parameter is not well-formed. |
|
virtual |
Creates a new sibling node before the currently selected node using the nodes in the XPathNavigator specified.
newSibling | An XPathNavigator object positioned on the node to add as the new sibling node. |
ArgumentNullException | The XPathNavigator object parameter is nullptr . |
InvalidOperationException | The position of the XPathNavigator does not allow a new sibling node to be inserted before the current node. |
NotSupportedException | The XPathNavigator does not support editing. |
|
virtual |
Creates a new sibling element after the current node using the namespace prefix, local name and namespace URI specified, with the value specified.
prefix | The namespace prefix of the new child element (if any). |
localName | The local name of the new child element (if any). |
namespaceURI | The namespace URI of the new child element (if any). String::Empty and nullptr are equivalent. |
value | The value of the new child element. If String::Empty or nullptr are passed, an empty element is created. |
InvalidOperationException | The position of the XPathNavigator does not allow a new sibling node to be inserted after the current node. |
NotSupportedException | The XPathNavigator does not support editing. |
|
virtual |
Creates a new sibling element before the current node using the namespace prefix, local name, and namespace URI specified, with the value specified.
prefix | The namespace prefix of the new child element (if any). |
localName | The local name of the new child element (if any). |
namespaceURI | The namespace URI of the new child element (if any). String::Empty and nullptr are equivalent. |
value | The value of the new child element. If String::Empty or nullptr are passed, an empty element is created. |
InvalidOperationException | The position of the XPathNavigator does not allow a new sibling node to be inserted before the current node. |
NotSupportedException | The XPathNavigator does not support editing. |
|
virtual |
Determines whether the specified XPathNavigator is a descendant of the current XPathNavigator.
nav | The XPathNavigator to compare to this XPathNavigator. |
true
if the specified XPathNavigator is a descendant of the current XPathNavigator; otherwise, false
.
|
pure virtual |
When overridden in a derived class, determines whether the current XPathNavigator is at the same position as the specified XPathNavigator.
other | The XPathNavigator to compare to this XPathNavigator. |
true
if the two XPathNavigator objects have the same position; otherwise, false
.
|
overridevirtual |
Returns the namespace URI for the specified prefix.
prefix | The prefix whose namespace URI you want to resolve. To match the default namespace, pass String::Empty. |
nullptr
if no namespace URI is assigned to the prefix specified. The String returned is atomized. Implements System::Xml::IXmlNamespaceResolver.
|
overridevirtual |
Returns the prefix declared for the specified namespace URI.
namespaceURI | The namespace URI to resolve for the prefix. |
Implements System::Xml::IXmlNamespaceResolver.
|
virtual |
Determines whether the current node matches the specified XPathExpression.
expr | An XPathExpression object containing the compiled XPath expression. |
true
if the current node matches the XPathExpression; otherwise, false
.
|
virtual |
|
pure virtual |
When overridden in a derived class, moves the XPathNavigator to the same position as the specified XPathNavigator.
other | The XPathNavigator positioned on the node that you want to move to. |
true
if the XPathNavigator is successful moving to the same position as the specified XPathNavigator; otherwise, false
. If false
, the position of the XPathNavigator is unchanged.
|
virtual |
Moves the XPathNavigator to the attribute with the matching local name and namespace URI.
localName | The local name of the attribute. |
namespaceURI | The namespace URI of the attribute; nullptr for an empty namespace. |
true
if the XPathNavigator is successful moving to the attribute; otherwise, false
. If false
, the position of the XPathNavigator is unchanged.
|
virtual |
Moves the XPathNavigator to the child node with the local name and namespace URI specified.
localName | The local name of the child node to move to. |
namespaceURI | The namespace URI of the child node to move to. |
true
if the XPathNavigator is successful moving to the child node; otherwise, false
. If false
, the position of the XPathNavigator is unchanged.
|
virtual |
Moves the XPathNavigator to the child node of the XPathNodeType specified.
type | The XPathNodeType of the child node to move to. |
true
if the XPathNavigator is successful moving to the child node; otherwise, false
. If false
, the position of the XPathNavigator is unchanged.
|
virtual |
Moves the XPathNavigator to the first sibling node of the current node.
true
if the XPathNavigator is successful moving to the first sibling node of the current node; false
if there is no first sibling, or if the XPathNavigator is currently positioned on an attribute node. If the XPathNavigator is already positioned on the first sibling, XPathNavigator will return true
and will not move its position. If XPathNavigator::MoveToFirst returns false
because there is no first sibling, or if XPathNavigator is currently positioned on an attribute, the position of the XPathNavigator is unchanged.
|
pure virtual |
When overridden in a derived class, moves the XPathNavigator to the first attribute of the current node.
true
if the XPathNavigator is successful moving to the first attribute of the current node; otherwise, false
. If false
, the position of the XPathNavigator is unchanged.
|
pure virtual |
When overridden in a derived class, moves the XPathNavigator to the first child node of the current node.
true
if the XPathNavigator is successful moving to the first child node of the current node; otherwise, false
. If false
, the position of the XPathNavigator is unchanged.
|
pure virtual |
When overridden in a derived class, moves the XPathNavigator to the first namespace node that matches the XPathNamespaceScope specified.
namespaceScope | An XPathNamespaceScope value describing the namespace scope. |
true
if the XPathNavigator is successful moving to the first namespace node; otherwise, false
. If false
, the position of the XPathNavigator is unchanged. ASPOSECPP_SHARED_API bool System::Xml::XPath::XPathNavigator::MoveToFirstNamespace | ( | ) |
Moves the XPathNavigator to first namespace node of the current node.
true
if the XPathNavigator is successful moving to the first namespace node; otherwise, false
. If false
, the position of the XPathNavigator is unchanged.
|
virtual |
Moves the XPathNavigator to the element with the local name and namespace URI specified in document order.
localName | The local name of the element. |
namespaceURI | The namespace URI of the element. |
true
if the XPathNavigator moved successfully; otherwise, false
.
|
virtual |
Moves the XPathNavigator to the element with the local name and namespace URI specified, to the boundary specified, in document order.
localName | The local name of the element. |
namespaceURI | The namespace URI of the element. |
end | The XPathNavigator object positioned on the element boundary which the current XPathNavigator will not move past while searching for the following element. |
true
if the XPathNavigator moved successfully; otherwise, false
.
|
virtual |
Moves the XPathNavigator to the following element of the XPathNodeType specified in document order.
type | The XPathNodeType of the element. The XPathNodeType cannot be XPathNodeType::Attribute or XPathNodeType::Namespace. |
true
if the XPathNavigator moved successfully; otherwise, false
.
|
virtual |
Moves the XPathNavigator to the following element of the XPathNodeType specified, to the boundary specified, in document order.
type | The XPathNodeType of the element. The XPathNodeType cannot be XPathNodeType::Attribute or XPathNodeType::Namespace. |
end | The XPathNavigator object positioned on the element boundary which the current XPathNavigator will not move past while searching for the following element. |
true
if the XPathNavigator moved successfully; otherwise, false
.
|
pure virtual |
When overridden in a derived class, moves to the node that has an attribute of type ID
whose value matches the specified String.
id | A String representing the ID value of the node to which you want to move. |
true
if the XPathNavigator is successful moving; otherwise, false
. If false
, the position of the navigator is unchanged.
|
virtual |
Moves the XPathNavigator to the namespace node with the specified namespace prefix.
name | The namespace prefix of the namespace node. |
true
if the XPathNavigator is successful moving to the specified namespace; false
if a matching namespace node was not found, or if the XPathNavigator is not positioned on an element node. If false
, the position of the XPathNavigator is unchanged.
|
pure virtual |
When overridden in a derived class, moves the XPathNavigator to the next sibling node of the current node.
true
if the XPathNavigator is successful moving to the next sibling node; otherwise false
if there are no more siblings or if the XPathNavigator is currently positioned on an attribute node. If false
, the position of the XPathNavigator is unchanged.
|
virtual |
Moves the XPathNavigator to the next sibling node with the local name and namespace URI specified.
localName | The local name of the next sibling node to move to. |
namespaceURI | The namespace URI of the next sibling node to move to. |
true
if the XPathNavigator is successful moving to the next sibling node; false
if there are no more siblings, or if the XPathNavigator is currently positioned on an attribute node. If false
, the position of the XPathNavigator is unchanged.
|
virtual |
Moves the XPathNavigator to the next sibling node of the current node that matches the XPathNodeType specified.
type | The XPathNodeType of the sibling node to move to. |
true
if the XPathNavigator is successful moving to the next sibling node; otherwise, false
if there are no more siblings or if the XPathNavigator is currently positioned on an attribute node. If false
, the position of the XPathNavigator is unchanged.
|
pure virtual |
When overridden in a derived class, moves the XPathNavigator to the next attribute.
true
if the XPathNavigator is successful moving to the next attribute; false
if there are no more attributes. If false
, the position of the XPathNavigator is unchanged.
|
pure virtual |
When overridden in a derived class, moves the XPathNavigator to the next namespace node matching the XPathNamespaceScope specified.
namespaceScope | An XPathNamespaceScope value describing the namespace scope. |
true
if the XPathNavigator is successful moving to the next namespace node; otherwise, false
. If false
, the position of the XPathNavigator is unchanged. ASPOSECPP_SHARED_API bool System::Xml::XPath::XPathNavigator::MoveToNextNamespace | ( | ) |
Moves the XPathNavigator to the next namespace node.
true
if the XPathNavigator is successful moving to the next namespace node; otherwise, false
. If false
, the position of the XPathNavigator is unchanged.
|
pure virtual |
When overridden in a derived class, moves the XPathNavigator to the parent node of the current node.
true
if the XPathNavigator is successful moving to the parent node of the current node; otherwise, false
. If false
, the position of the XPathNavigator is unchanged.
|
pure virtual |
When overridden in a derived class, moves the XPathNavigator to the previous sibling node of the current node.
true
if the XPathNavigator is successful moving to the previous sibling node; otherwise, false
if there is no previous sibling node or if the XPathNavigator is currently positioned on an attribute node. If false
, the position of the XPathNavigator is unchanged.
|
virtual |
Moves the XPathNavigator to the root node that the current node belongs to.
|
virtual |
Returns an XmlWriter object used to create a new child node at the beginning of the list of child nodes of the current node.
InvalidOperationException | The current node the XPathNavigator is positioned on does not allow a new child node to be prepended. |
NotSupportedException | The XPathNavigator does not support editing. |
|
virtual |
Creates a new child node at the beginning of the list of child nodes of the current node using the XML string specified.
newChild | The XML data string for the new child node. |
ArgumentNullException | The XML string parameter is nullptr . |
InvalidOperationException | The current node the XPathNavigator is positioned on does not allow a new child node to be prepended. |
NotSupportedException | The XPathNavigator does not support editing. |
XmlException | The XML string parameter is not well-formed. |
|
virtual |
Creates a new child node at the beginning of the list of child nodes of the current node using the XML contents of the XmlReader object specified.
newChild | An XmlReader object positioned on the XML data for the new child node. |
ArgumentException | The XmlReader object is in an error state or closed. |
ArgumentNullException | The XmlReader object parameter is nullptr . |
InvalidOperationException | The current node the XPathNavigator is positioned on does not allow a new child node to be prepended. |
NotSupportedException | The XPathNavigator does not support editing. |
XmlException | The XML contents of the XmlReader object parameter is not well-formed. |
|
virtual |
Creates a new child node at the beginning of the list of child nodes of the current node using the nodes in the XPathNavigator object specified.
newChild | An XPathNavigator object positioned on the node to add as the new child node. |
ArgumentNullException | The XPathNavigator object parameter is nullptr . |
InvalidOperationException | The current node the XPathNavigator is positioned on does not allow a new child node to be prepended. |
NotSupportedException | The XPathNavigator does not support editing. |
|
virtual |
Creates a new child element at the beginning of the list of child nodes of the current node using the namespace prefix, local name, and namespace URI specified with the value specified.
prefix | The namespace prefix of the new child element (if any). |
localName | The local name of the new child element (if any). |
namespaceURI | The namespace URI of the new child element (if any). String::Empty and nullptr are equivalent. |
value | The value of the new child element. If String::Empty or nullptr are passed, an empty element is created. |
InvalidOperationException | The current node the XPathNavigator is positioned on does not allow a new child node to be prepended. |
NotSupportedException | The XPathNavigator does not support editing. |
|
virtual |
Returns an XmlReader object that contains the current node and its child nodes.
InvalidOperationException | The XPathNavigator is not positioned on an element node or the root node. |
|
virtual |
Replaces a range of sibling nodes from the current node to the node specified.
lastSiblingToReplace | An XPathNavigator positioned on the last sibling node in the range to replace. |
ArgumentNullException | The XPathNavigator specified is nullptr . |
NotSupportedException | The XPathNavigator does not support editing. |
InvalidOperationException | The last node to replace specified is not a valid sibling node of the current node. |
|
virtual |
Replaces the current node with the content of the string specified.
newNode | The XML data string for the new node. |
ArgumentNullException | The XML string parameter is nullptr . |
InvalidOperationException | The XPathNavigator is not positioned on an element, text, processing instruction, or comment node. |
NotSupportedException | The XPathNavigator does not support editing. |
XmlException | The XML string parameter is not well-formed. |
|
virtual |
Replaces the current node with the contents of the XmlReader object specified.
newNode | An XmlReader object positioned on the XML data for the new node. |
ArgumentException | The XmlReader object is in an error state or closed. |
ArgumentNullException | The XmlReader object parameter is nullptr . |
InvalidOperationException | The XPathNavigator is not positioned on an element, text, processing instruction, or comment node. |
NotSupportedException | The XPathNavigator does not support editing. |
XmlException | The XML contents of the XmlReader object parameter is not well-formed. |
|
virtual |
Replaces the current node with the contents of the XPathNavigator object specified.
newNode | An XPathNavigator object positioned on the new node. |
ArgumentNullException | The XPathNavigator object parameter is nullptr . |
InvalidOperationException | The XPathNavigator is not positioned on an element, text, processing instruction, or comment node. |
NotSupportedException | The XPathNavigator does not support editing. |
XmlException | The XML contents of the XPathNavigator object parameter is not well-formed. |
|
virtual |
Selects a node set, using the specified XPath expression.
|
virtual |
Selects a node set using the specified XPath expression with the IXmlNamespaceResolver object specified to resolve namespace prefixes.
xpath | A String representing an XPath expression. |
resolver | The IXmlNamespaceResolver object used to resolve namespace prefixes. |
|
virtual |
Selects a node set using the specified XPathExpression.
expr | An XPathExpression object containing the compiled XPath query. |
|
virtual |
Selects all the ancestor nodes of the current node that have a matching XPathNodeType.
type | The XPathNodeType of the ancestor nodes. |
matchSelf | To include the context node in the selection, true ; otherwise, false . |
|
virtual |
Selects all the ancestor nodes of the current node that have the specified local name and namespace URI.
name | The local name of the ancestor nodes. |
namespaceURI | The namespace URI of the ancestor nodes. |
matchSelf | To include the context node in the selection, true ; otherwise, false . |
ArgumentNullException | nullptr cannot be passed as a parameter. |
|
virtual |
Selects all the child nodes of the current node that have the matching XPathNodeType.
type | The XPathNodeType of the child nodes. |
|
virtual |
Selects all the child nodes of the current node that have the local name and namespace URI specified.
name | The local name of the child nodes. |
namespaceURI | The namespace URI of the child nodes. |
ArgumentNullException | nullptr cannot be passed as a parameter. |
|
virtual |
Selects all the descendant nodes of the current node that have a matching XPathNodeType.
type | The XPathNodeType of the descendant nodes. |
matchSelf | true to include the context node in the selection; otherwise, false . |
|
virtual |
Selects all the descendant nodes of the current node with the local name and namespace URI specified.
name | The local name of the descendant nodes. |
namespaceURI | The namespace URI of the descendant nodes. |
matchSelf | true to include the context node in the selection; otherwise, false . |
ArgumentNullException | nullptr cannot be passed as a parameter. |
|
virtual |
Selects a single node in the XPathNavigator using the specified XPath query.
nullptr
if there are no query results.
|
virtual |
Selects a single node in the XPathNavigator object using the specified XPath query with the IXmlNamespaceResolver object specified to resolve namespace prefixes.
xpath | A String representing an XPath expression. |
resolver | The IXmlNamespaceResolver object used to resolve namespace prefixes in the XPath query. |
nullptr
if there are no query results.
|
virtual |
Selects a single node in the XPathNavigator using the specified XPathExpression object.
expression | An XPathExpression object containing the compiled XPath query. |
nullptr
if there are no query results.
|
virtual |
Sets the markup representing the child nodes of the current node.
value | The value to set. |
InvalidOperationException | The value cannot be set. |
|
virtual |
Sets the markup representing the opening and closing tags of the current node and its child nodes.
value | The value to set. |
|
virtual |
Sets the typed value of the current node.
typedValue | The new typed value of the node. |
ArgumentException | The XPathNavigator does not support the type of the object specified. |
ArgumentNullException | The value specified cannot be nullptr . |
InvalidOperationException | The XPathNavigator is not positioned on an element or attribute node. |
NotSupportedException | The XPathNavigator does not support editing. |
|
virtual |
Sets the value of the current node.
value | The new value of the node. |
ArgumentNullException | The value parameter is nullptr . |
InvalidOperationException | The XPathNavigator is positioned on the root node, a namespace node, or the specified value is invalid. |
NotSupportedException | The XPathNavigator does not support editing. |
|
overridevirtual |
Returns the text value of the current node.
string
that contains the text value of the current node. Reimplemented from System::Object.
|
overridevirtual |
Returns the current node's value as the Type specified, using the IXmlNamespaceResolver object specified to resolve namespace prefixes.
returnType | The Type to return the current node's value as. |
nsResolver | The IXmlNamespaceResolver object used to resolve namespace prefixes. |
FormatException | The current node's value is not in the correct format for the target type. |
InvalidCastException | The attempted cast is not valid. |
Implements System::Xml::XPath::XPathItem.