5#include <xml/xml_node_type.h>
6#include <xml/xml_linked_node.h>
7#include <system/shared_ptr.h>
17class DocumentSchemaValidator;
18class DocumentXmlWriter;
19class DocumentXPathNavigator;
26class XmlAttributeCollection;
32class XmlNodeReaderNavigator;
55 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
56 ASPOSECPP_SHARED_RTTI_INFO_DECL();
65 friend class DocumentSchemaValidator;
66 friend class DocumentXmlWriter;
67 friend class DocumentXPathNavigator;
72 friend class XmlLoader;
73 friend class XmlNodeReaderNavigator;
74 friend class Schema::Parser;
260 ASPOSECPP_SHARED_API
bool get_IsContainer()
override;
266 ASPOSECPP_SHARED_API
String get_XPLocalName()
override;
283 ASPOSECPP_SHARED_API
bool IsValidChildType(
XmlNodeType type)
override;
284 void RemoveAllChildren();
292 #ifdef ASPOSE_GET_SHARED_MEMBERS
293 ASPOSECPP_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
Represents a collection of attributes that can be accessed by name or index.
Definition: xml_attribute_collection.h:35
Represents an attribute. Valid and default values for the attribute are defined in a document type de...
Definition: xml_attribute.h:50
Represents an XML document. You can use this class to load, validate, edit, add, and position XML in ...
Definition: xml_document.h:100
Represents an element.
Definition: xml_element.h:51
String get_NamespaceURI() override
Returns the namespace URI of this node.
virtual void SetAttribute(String name, String value)
Sets the value of the attribute with the specified name.
virtual SharedPtr< XmlAttribute > RemoveAttributeNode(String localName, String namespaceURI)
Removes the XmlAttribute specified by the local name and namespace URI. (If the removed attribute has...
SharedPtr< XmlDocument > get_OwnerDocument() override
Returns the XmlDocument to which this node belongs.
void RemoveAll() override
Removes all specified attributes and children of the current node. Default attributes are not removed...
void set_Prefix(String value) override
Sets the namespace prefix of this node.
void WriteContentTo(const SharedPtr< XmlWriter > &w) override
Saves all the children of the node to the specified XmlWriter.
void set_InnerText(String value) override
Sets the concatenated values of the node and all its children.
String get_Name() override
Returns the qualified name of the node.
virtual String SetAttribute(String localName, String namespaceURI, String value)
Sets the value of the attribute with the specified local name and namespace URI.
virtual SharedPtr< XmlAttribute > SetAttributeNode(SharedPtr< XmlAttribute > newAttr)
Adds the specified XmlAttribute.
MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(XmlElement, CODEPORTING_ARGS(const String &prefix, const String &localName, const String &namespaceURI, const SharedPtr< XmlDocument > &doc))
virtual String GetAttribute(String name)
Returns the value for the attribute with the specified name.
void WriteTo(const SharedPtr< XmlWriter > &w) override
Saves the current node to the specified XmlWriter.
virtual SharedPtr< XmlAttribute > GetAttributeNode(String localName, String namespaceURI)
Returns the XmlAttribute with the specified local name and namespace URI.
XmlNodeType get_NodeType() override
Returns the type of the current node.
virtual void RemoveAllAttributes()
Removes all specified attributes from the element. Default attributes are not removed.
virtual void RemoveAttribute(String localName, String namespaceURI)
Removes an attribute with the specified local name and namespace URI. (If the removed attribute has a...
virtual SharedPtr< XmlAttribute > GetAttributeNode(String name)
Returns the XmlAttribute with the specified name.
void set_InnerXml(String value) override
Sets the markup representing just the children of this node.
virtual bool get_HasAttributes()
Returns a bool value indicating whether the current node has any attributes.
virtual SharedPtr< XmlAttribute > SetAttributeNode(String localName, String namespaceURI)
Adds the specified XmlAttribute.
virtual bool HasAttribute(String name)
Determines whether the current node has an attribute with the specified name.
virtual SharedPtr< XmlAttribute > RemoveAttributeNode(SharedPtr< XmlAttribute > oldAttr)
Removes the specified XmlAttribute.
virtual SharedPtr< XmlNode > RemoveAttributeAt(int32_t i)
Removes the attribute node with the specified index from the element. (If the removed attribute has a...
bool get_IsEmpty()
Returns the tag format of the element.
String get_InnerText() override
Returns the concatenated values of the node and all its children.
SharedPtr< Schema::IXmlSchemaInfo > get_SchemaInfo() override
Returns the post schema validation infoset that has been assigned to this node as a result of schema ...
virtual String GetAttribute(String localName, String namespaceURI)
Returns the value for the attribute with the specified local name and namespace URI.
String get_LocalName() override
Returns the local name of the current node.
void set_IsEmpty(bool value)
Sets the tag format of the element.
virtual void RemoveAttribute(String name)
Removes an attribute by name.
XmlElement(const String &prefix, const String &localName, const String &namespaceURI, const SharedPtr< XmlDocument > &doc)
Initializes a new instance of the XmlElement class.
virtual SharedPtr< XmlNodeList > GetElementsByTagName(String name)
Returns an XmlNodeList containing a list of all descendant elements that match the specified XmlEleme...
String get_Prefix() override
Returns the namespace prefix of this node.
String get_InnerXml() override
Returns the markup representing just the children of this node.
virtual bool HasAttribute(String localName, String namespaceURI)
Determines whether the current node has an attribute with the specified local name and namespace URI.
SharedPtr< XmlNode > CloneNode(bool deep) override
Creates a duplicate of this node.
virtual SharedPtr< XmlNodeList > GetElementsByTagName(String localName, String namespaceURI)
Returns an XmlNodeList containing a list of all descendant elements that match the specified XmlEleme...
Returns the node immediately preceding or following this node.
Definition: xml_linked_node.h:32
Represents a single node in the XML document.
Definition: xml_node.h:75
XPathNodeType
Defines the XPath node types that can be returned from the XPathNavigator class.
Definition: xpath_node_type.h:17
@ Schema
Validate according to XML Schema definition language (XSD) schemas, including inline XML Schemas....
@ Xml
Serialize according to the XML 1.0 rules.
XmlNodeType
Specifies the type of node.
Definition: xml_node_type.h:15
Definition: db_command.h:9