Xml Document Reader For Mac

Xml Document Reader For Mac Average ratng: 3,9/5 9774 reviews

The design means your CAC card is visible while inserted into the reader, which means you’ll never accidentally forget it. Cac card reader for mac program. The SCR-10 from Rocketek is the second choice pick for Mac compatible portable CAC readers. Although it is slightly more expensive than the SCR3, and has a slightly lower review grade average, the SCR-10 has a few extra features, such as built-in SD card compatibility.

  1. Document Reader For Mac
  2. Xml Document Reader Download
  3. Free Xml Document Reader Download
  4. Word Document Reader For Mac
  5. Free Word Document Reader For Mac
  6. Download Xml Reader

XML editors are entirely different from the word processing tools as these are added with the functionalities of editing XML files. XML editing is done by way of using any plain text editor with all the code visible, however, with the extra functionalities of performing tag completion and the integration of menus and buttons for tasks that are standard requirement of XML editing. These are based on data supplied with DTD or XML tree. In addition to standard XML editors, there are multiple graphical editors as will that are integrated with the functions of hiding the code of any file in the background and present the content to the users in a more non-disruptive format, approximating the rendered version or editing forms. This system of later on XML editors is suitable for those users who are not fluent in XML code and require to provide the information in XML-based documents including expenditure reports and time sheets. The system of syntax detail makes the professional users to work even faster and in a more convenient environment. We have compiled the list of advanced XML editor that have the solution in the shape of XML Editor, XML Author, XML Web Author, XML Developer and Web Help. Some of these are based on the traditional way of working but there are several to deliver you the graphical way of editing.

-->
  • XML Viewer can be used not only to view XML files but also to edit them. When you start the program and open a file, you can see the file's entire XML structure in a window. If you select one of the nodes, its attributes appear in a separate window and you can modify them.
  • Mobile Tools for Mac iPad/iPhone/iPod to Mac Transfer iPad/iPhone/iPod Recovery Mac. Simple Way to Open and Read XML Files on Amazon Kindle. Fortunately, there are some free programs can easily convert XML documents to Kindle format for reading feel free. XML Conversion Service for Kindle.

Definition

Represents a reader that provides fast, noncached, forward-only access to XML data.

For heavyweight XML features, like XPath support, XSLT editing and debugging, SOAP/WSDL there are some good commercial tools like, XMLSpy, Oxygen, StylusStudio. JEdit is open-source and also has plugins for XML, XPath and XSLT.

Inheritance
XmlReaderXmlReaderXmlReaderXmlReader
Derived
XmlDictionaryReaderXmlDictionaryReaderXmlDictionaryReaderXmlDictionaryReader
XmlNodeReaderXmlNodeReaderXmlNodeReaderXmlNodeReader
XmlTextReaderXmlTextReaderXmlTextReaderXmlTextReader
XmlValidatingReaderXmlValidatingReaderXmlValidatingReaderXmlValidatingReader
Implements

Examples

The following example code shows how to use the asynchronous API to parse XML.

Remarks

XmlReader provides forward-only, read-only access to XML data in a document or stream. This class conforms to the W3C Extensible Markup Language (XML) 1.0 (fourth edition) and the Namespaces in XML 1.0 (third edition) recommendations.

XmlReader methods let you move through XML data and read the contents of a node. The properties of the class reflect the value of the current node, which is where the reader is positioned.The ReadState property value indicates the current state of the XML reader. For example, the property is set to ReadState.Initial by the XmlReader.Read method and ReadState.Closed by the XmlReader.Close method. XmlReader also provides data conformance checks and validation against a DTD or schema.

XmlReader uses a pull model to retrieve data. This model:

  • Simplifies state management by a natural, top-down procedural refinement.

  • Supports multiple input streams and layering.

  • Enables the client to give the parser a buffer into which the string is directly written, and thus avoids the necessity of an extra string copy.

  • Supports selective processing. The client can skip items and process those that are of interest to the application. You can also set properties in advance to manage how the XML stream is processed (for example, normalization).

In this section:

Creating an XML reader
Validating XML data
Data conformance
Navigating through nodes
Reading XML elements
Reading XML attributes
Reading XML content
Converting to CLR types
Asynchronous programming
Security considerations

Creating an XML reader

Use the Create method to create an XmlReader instance.

Although the .NET Framework provides concrete implementations of the XmlReader class, such as the XmlTextReader, XmlNodeReader, and the XmlValidatingReader classes, we recommend that you use the specialized classes only in these scenarios:

  • When you want to read an XML DOM subtree from an XmlNode object, use the XmlNodeReader class. (However, this class doesn't support DTD or schema validation.)

  • If you must expand entities on request, you don't want your text content normalized, or you don't want default attributes returned, use the XmlTextReader class.

To specify the set of features you want to enable on the XML reader, pass an System.Xml.XmlReaderSettings object to the Create method. You can use a single System.Xml.XmlReaderSettings object to create multiple readers with the same functionality, or modify the System.Xml.XmlReaderSettings object to create a new reader with a different set of features. You can also easily add features to an existing reader.

If you don't use a System.Xml.XmlReaderSettings object, default settings are used. See the Create reference page for details.

Document Reader For Mac

XmlReader throws an XmlException on XML parse errors. After an exception is thrown, the state of the reader is not predictable. For example, the reported node type may be different from the actual node type of the current node. Use the ReadState property to check whether the reader is in error state.

Validating XML data

To define the structure of an XML document and its element relationships, data types, and content constraints, you use a document type definition (DTD) or XML Schema definition language (XSD) schema. An XML document is considered to be well formed if it meets all the syntactical requirements defined by the W3C XML 1.0 Recommendation. It's considered valid if it's well formed and also conforms to the constraints defined by its DTD or schema. (See the W3C XML Schema Part 1: Structures and the W3C XML Schema Part 2: Datatypes recommendations.) Therefore, although all valid XML documents are well formed, not all well-formed XML documents are valid.

Xml Document Reader Download

You can validate the data against a DTD, an inline XSD Schema, or an XSD Schema stored in an XmlSchemaSet object (a cache); these scenarios are described on the Create reference page. XmlReader doesn't support XML-Data Reduced (XDR) schema validation.

You use the following settings on the XmlReaderSettings class to specify what type of validation, if any, the XmlReader instance supports.

Use this XmlReaderSettings memberTo specify
DtdProcessing propertyWhether to allow DTD processing. The default is to disallow DTD processing.
ValidationType propertyWhether the reader should validate data, and what type of validation to perform (DTD or schema). The default is no data validation.
ValidationEventHandler eventAn event handler for receiving information about validation events. If an event handler is not provided, an XmlException is thrown on the first validation error.
ValidationFlags propertyAdditional validation options through the XmlSchemaValidationFlags enumeration members:
- AllowXmlAttributes-- Allow XML attributes (xml:*) in instance documents even when they're not defined in the schema. The attributes are validated based on their data type. See the XmlSchemaValidationFlags reference page for the setting to use in specific scenarios. (Disabled by default.)
- ProcessIdentityConstraints --Process identity constraints (xs:ID, xs:IDREF, xs:key, xs:keyref, xs:unique) encountered during validation. (Enabled by default.)
- ProcessSchemaLocation --Process schemas specified by the xsi:schemaLocation or xsi:noNamespaceSchemaLocation attribute. (Enabled by default.)
- ProcessInlineSchema-- Process inline XML Schemas during validation. (Disabled by default.)
- ReportValidationWarnings--Report events if a validation warning occurs. A warning is typically issued when there is no DTD or XML Schema to validate a particular element or attribute against. The ValidationEventHandler is used for notification. (Disabled by default.)
SchemasThe XmlSchemaSet to use for validation.
XmlResolver propertyThe XmlResolver for resolving and accessing external resources. This can include external entities such as DTD and schemas, and any xs:include or xs:import elements contained in the XML Schema. If you don't specify an XmlResolver, the XmlReader uses a default XmlUrlResolver with no user credentials.

Data conformance

XML readers that are created by the Create method meet the following compliance requirements by default:

  • New lines and attribute value are normalized according to the W3C XML 1.0 Recommendation.

  • All entities are automatically expanded.

  • Default attributes declared in the document type definition are always added even when the reader doesn't validate.

  • Declaration of XML prefix mapped to the correct XML namespace URI is allowed.

  • The notation names in a single NotationType attribute declaration and NmTokens in a single Enumeration attribute declaration are distinct.

Use these XmlReaderSettings properties to specify the type of conformance checks you want to enable:

Use this XmlReaderSettings propertyToDefault
CheckCharacters propertyEnable or disable checks for the following:
- Characters are within the range of legal XML characters, as defined by the 2.2 Characters section of the W3C XML 1.0 Recommendation.
- All XML names are valid, as defined by the 2.3 Common Syntactic Constructs section of the W3C XML 1.0 Recommendation.
When this property is set to true (default), an XmlException exception is thrown if the XML file contains illegal characters or invalid XML names (for example, an element name starts with a number).
Character and name checking is enabled.
Setting CheckCharacters to false turns off character checking for character entity references. If the reader is processing text data, it always checks that XML names are valid, regardless of this setting. Note: The XML 1.0 recommendation requires document-level conformance when a DTD is present. Therefore, if the reader is configured to support ConformanceLevel.Fragment, but the XML data contains a document type definition (DTD), an XmlException is thrown.
ConformanceLevel propertyChoose the level of conformance to enforce:
- Document. Conforms to the rules for a well-formed XML 1.0 document.
- Fragment. Conforms to the rules for a well-formed document fragment that can be consumed as an external parsed entity.
- Auto. Conforms to the level decided by the reader.
If the data isn't in conformance, an XmlException exception is thrown.
Document

Navigating through nodes

The current node is the XML node on which the XML reader is currently positioned. All XmlReader methods perform operations in relation to this node, and all XmlReader properties reflect the value of the current node.

The following methods make it easy to navigate through nodes and parse data.

Use this XmlReaderSettings methodTo
ReadRead the first node, and advance through the stream one node at a time. Such calls are typically performed inside a while loop.
Use the NodeType property to get the type (for example, attribute, comment, element, and so on) of the current node.
SkipSkip the children of the current node and move to the next node.
MoveToContent and MoveToContentAsyncSkip non-content nodes and move to the next content node or to the end of the file.
Non-content nodes include ProcessingInstruction, DocumentType, Comment, Whitespace, and SignificantWhitespace.
Content nodes include non-white space text, CDATA, EntityReference , and EndEntity.
ReadSubtreeRead an element and all its children, and return a new XmlReader instance set to ReadState.Initial.
This method is useful for creating boundaries around XML elements; for example, if you want to pass data to another component for processing and you want to limit how much of your data the component can access.

See the XmlReader.Read reference page for an example of navigating through a text stream one node at a time and displaying the type of each node.

The following sections describe how you can read specific types of data, such as elements, attributes, and typed data.

Reading XML elements

The following table lists the methods and properties that the XmlReader class provides for processing elements. After the XmlReader is positioned on an element, the node properties, such as Name, reflect the element values. In addition to the members described below, any of the general methods and properties of the XmlReader class can also be used to process elements. For example, you can use the ReadInnerXml method to read the contents of an element.

Note

See section 3.1 of the W3C XML 1.0 Recommendation for definitions of start tags, end tags, and empty element tags.

Use this XmlReader memberTo
IsStartElement methodCheck if the current node is a start tag or an empty element tag.
ReadStartElement methodCheck that the current node is an element and advance the reader to the next node (calls IsStartElement followed by Read).
ReadEndElement methodCheck that the current node is an end tag and advance the reader to the next node.
ReadElementString methodRead a text-only element.
ReadToDescendant methodAdvance the XML reader to the next descendant (child) element that has the specified name.
ReadToNextSibling methodAdvance the XML reader to the next sibling element that has the specified name.
IsEmptyElement propertyCheck if the current element has an end element tag. For example:
- <item num='123'/> (IsEmptyElement is true.)
- <item num='123'> </item> (IsEmptyElement is false, although the element's content is empty.)

For an example of reading the text content of elements, see the ReadString method. The following example processes elements by using a while loop.

Reading XML attributes

XML attributes are most commonly found on elements, but they're also allowed on XML declaration and document type nodes.

When positioned on an element node, the MoveToAttribute method lets you go through the attribute list of the element. Note that after MoveToAttribute has been called, node properties such as Name, NamespaceURI, and Prefix reflect the properties of that attribute, not the properties of the element the attribute belongs to.

The XmlReader class provides these methods and properties to read and process attributes on elements.

Use this XmlReader memberTo
HasAttributes propertyCheck whether the current node has any attributes.
AttributeCount propertyGet the number of attributes on the current element.
MoveToFirstAttribute methodMove to the first attribute in an element.
MoveToNextAttribute methodMove to the next attribute in an element.
MoveToAttribute methodMove to a specified attribute.
GetAttribute method or Item[String, String] propertyGet the value of a specified attribute.
IsDefault propertyCheck whether the current node is an attribute that was generated from the default value defined in the DTD or schema.
MoveToElement methodMove to the element that owns the current attribute. Use this method to return to an element after navigating through its attributes.
ReadAttributeValue methodParse the attribute value into one or more Text, EntityReference, or EndEntity nodes.

Any of the general XmlReader methods and properties can also be used to process attributes. For example, after the XmlReader is positioned on an attribute, the Name and Value properties reflect the values of the attribute. You can also use any of the content Read methods to get the value of the attribute.

This example uses the AttributeCount property to navigate through all the attributes on an element.

This example uses the MoveToNextAttribute method in a while loop to navigate through the attributes.

Reading attributes on XML declaration nodes

When the XML reader is positioned on an XML declaration node, the Value property returns the version, standalone, and encoding information as a single string. XmlReader objects created by the Create method, the XmlTextReader class, and the XmlValidatingReader class expose the version, standalone, and encoding items as attributes.

Reading attributes on document type nodes

When the XML reader is positioned on a document type node, the GetAttribute method and Item[String, String] property can be used to return the values for the SYSTEM and PUBLIC literals. For example, calling reader.GetAttribute('PUBLIC') returns the PUBLIC value.

Reading attributes on processing instruction nodes

When the XmlReader is positioned on a processing instruction node, the Value property returns the entire text content. Items in the processing instruction node aren't treated as attributes. They can't be read with the GetAttribute or MoveToAttribute method.

Reading XML content

The XMLReader class includes the following members that read content from an XML file and return the content as string values. (To return CLR types, see the next section.)

Use this XmlReader memberTo
Value propertyGet the text content of the current node. The value returned depends on the node type; see the Value reference page for details.
ReadString methodGet the content of an element or text node as a string. This method stops on processing instructions and comments.
For details on how this method handles specific node types, see the ReadString reference page.
ReadInnerXml and ReadInnerXmlAsync methodsGet all the content of the current node, including the markup, but excluding start and end tags. For example, for:
<node>this<child/></node>
ReadInnerXml returns:
this<child/>
ReadOuterXml and ReadOuterXmlAsync methodsGet all the content of the current node and its children, including markup and start/end tags. For example, for:
<node>this<child/></node>
ReadOuterXml returns:
<node>this<child/></node>

Converting to CLR types

You can use the members of the XmlReader class (listed in the following table) to read XML data and return values as common language runtime (CLR) types instead of strings. These members enable you to get values in the representation that is most appropriate for your coding task without having to manually parse or convert string values.

  • The ReadElementContentAs methods can only be called on element node types. These methods cannot be used on elements that contain child elements or mixed content. When called, the XmlReader object reads the start tag, reads the element content, and then moves past the end element tag. Processing instructions and comments are ignored and entities are expanded.

  • The ReadContentAs methods read the text content at the current reader position, and if the XML data doesn't have any schema or data type information associated with it, convert the text content to the requested return type. Text, white space, significant white space and CDATA sections are concatenated. Comments and processing instructions are skipped, and entity references are automatically resolved.

The XmlReader class uses the rules defined by the W3C XML Schema Part 2: Datatypes recommendation.

Use this XmlReader methodTo return this CLR type
ReadContentAsBoolean and ReadElementContentAsBooleanBoolean
ReadContentAsDateTime and ReadElementContentAsDateTimeDateTime
ReadContentAsDouble and ReadElementContentAsDoubleDouble
ReadContentAsLong and ReadElementContentAsLongInt64
ReadContentAsInt and ReadElementContentAsIntInt32
ReadContentAsString and ReadElementContentAsStringString
ReadContentAs and ReadElementContentAsThe type you specify with the returnType parameter
ReadContentAsObject and ReadElementContentAsObjectThe most appropriate type, as specified by the XmlReader.ValueType property. See Type Support in the System.Xml Classes for mapping information.

If an element can't easily be converted to a CLR type because of its format, you can use a schema mapping to ensure a successful conversion. The following example uses an .xsd file to convert the hire-date element to the xs:date type, and then uses the ReadElementContentAsDateTime method to return the element as a DateTime object.

Input (hireDate.xml):

Schema (hireDate.xsd):

Code:

Output:

Asynchronous programming

Most of the XmlReader methods have asynchronous counterparts that have 'Async' at the end of their method names. For example, the asynchronous equivalent of ReadContentAsObject is ReadContentAsObjectAsync.

The following methods can be used with asynchronous method calls:

The following sections describe asynchronous usage for methods that don't have asynchronous counterparts.

ReadStartElement method

ReadEndElement method

ReadToNextSibling method

ReadToFollowing method

ReadToDescendant method

Free Xml Document Reader Download

Security considerations

Consider the following when working with the XmlReader class:

  • Exceptions thrown from the XmlReader can disclose path information that you might not want bubbled up to your app. Your app must catch exceptions and process them appropriately.

  • Do not enable DTD processing if you're concerned about denial of service issues or if you're dealing with untrusted sources. DTD processing is disabled by default for XmlReader objects created by the Create method.

    If you have DTD processing enabled, you can use the XmlSecureResolver to restrict the resources that the XmlReader can access. You can also design your app so that the XML processing is memory and time constrained. For example, you can configure time-out limits in your ASP.NET app.

  • XML data can include references to external resources such as a schema file. By default, external resources are resolved by using an XmlUrlResolver object with no user credentials. You can secure this further by doing one of the following:

    • Restrict the resources that the XmlReader can access by setting the XmlReaderSettings.XmlResolver property to an XmlSecureResolver object.

    • Do not allow the XmlReader to open any external resources by setting the XmlReaderSettings.XmlResolver property to null.

  • The ProcessInlineSchema and ProcessSchemaLocation validation flags of an XmlReaderSettings object aren't set by default. This helps to protect the XmlReader against schema-based attacks when it is processing XML data from an untrusted source. When these flags are set, the XmlResolver of the XmlReaderSettings object is used to resolve schema locations encountered in the instance document in the XmlReader. If the XmlResolver property is set to null, schema locations aren't resolved even if the ProcessInlineSchema and ProcessSchemaLocation validation flags are set.

    Schemas added during validation add new types and can change the validation outcome of the document being validated. As a result, external schemas should only be resolved from trusted sources.

    We recommend disabling the ProcessIdentityConstraints flag when validating untrusted, large XML documents in high availability scenarios against a schema that has identity constraints over a large part of the document. This flag is enabled by default.

  • XML data can contain a large number of attributes, namespace declarations, nested elements and so on that require a substantial amount of time to process. To limit the size of the input that is sent to the XmlReader, you can:

    • Limit the size of the document by setting the MaxCharactersInDocument property.

    • Limit the number of characters that result from expanding entities by setting the MaxCharactersFromEntities property.

    • Create a custom IStream implementation for the XmlReader.

  • The ReadValueChunk method can be used to handle large streams of data. This method reads a small number of characters at a time instead of allocating a single string for the whole value.

  • When reading an XML document with a large number of unique local names, namespaces, or prefixes, a problem can occur. If you are using a class that derives from XmlReader, and you call the LocalName, Prefix, or NamespaceURI property for each item, the returned string is added to a NameTable. The collection held by the NameTable never decreases in size, creating a virtual memory leak of the string handles. One mitigation for this is to derive from the NameTable class and enforce a maximum size quota. (There is no way to prevent the use of a NameTable, or to switch the NameTable when it is full). Another mitigation is to avoid using the properties mentioned and instead use the MoveToAttribute method with the IsStartElement method where possible; those methods don't return strings and thus avoid the problem of overfilling the NameTable collection.

  • XmlReaderSettings objects can contain sensitive information such as user credentials. An untrusted component could use the XmlReaderSettings object and its user credentials to create XmlReader objects to read data. Be careful when caching XmlReaderSettings objects, or when passing the XmlReaderSettings object from one component to another.

  • Do not accept supporting components, such as NameTable, XmlNamespaceManager, and XmlResolver objects, from an untrusted source.

Constructors

XmlReader()XmlReader()XmlReader()XmlReader()

Initializes a new instance of the XmlReader class.

Properties

AttributeCountAttributeCountAttributeCountAttributeCount

When overridden in a derived class, gets the number of attributes on the current node.

BaseURIBaseURIBaseURIBaseURI

When overridden in a derived class, gets the base URI of the current node.

CanReadBinaryContentCanReadBinaryContentCanReadBinaryContentCanReadBinaryContent

Gets a value indicating whether the XmlReader implements the binary content read methods.

CanReadValueChunkCanReadValueChunkCanReadValueChunkCanReadValueChunk

Gets a value indicating whether the XmlReader implements the ReadValueChunk(Char[], Int32, Int32) method.

CanResolveEntityCanResolveEntityCanResolveEntityCanResolveEntity

Gets a value indicating whether this reader can parse and resolve entities.

DepthDepthDepthDepth

When overridden in a derived class, gets the depth of the current node in the XML document.

EOFEOFEOFEOF

When overridden in a derived class, gets a value indicating whether the reader is positioned at the end of the stream.

HasAttributesHasAttributesHasAttributesHasAttributes

Gets a value indicating whether the current node has any attributes.

HasValueHasValueHasValueHasValue

When overridden in a derived class, gets a value indicating whether the current node can have a Value.

IsDefaultIsDefaultIsDefaultIsDefault

When overridden in a derived class, gets a value indicating whether the current node is an attribute that was generated from the default value defined in the DTD or schema.

IsEmptyElementIsEmptyElementIsEmptyElementIsEmptyElement

When overridden in a derived class, gets a value indicating whether the current node is an empty element (for example, <MyElement/>).

Item[Int32]Item[Int32]Item[Int32]Item[Int32]

When overridden in a derived class, gets the value of the attribute with the specified index.

Item[String, String]Item[String, String]Item[String, String]Item[String, String]

When overridden in a derived class, gets the value of the attribute with the specified LocalName and NamespaceURI.

Item[String]Item[String]Item[String]Item[String]

When overridden in a derived class, gets the value of the attribute with the specified Name.

LocalNameLocalNameLocalNameLocalName

When overridden in a derived class, gets the local name of the current node.

NameNameNameName

When overridden in a derived class, gets the qualified name of the current node.

NamespaceURINamespaceURINamespaceURINamespaceURI

When overridden in a derived class, gets the namespace URI (as defined in the W3C Namespace specification) of the node on which the reader is positioned.

NameTableNameTableNameTableNameTable

When overridden in a derived class, gets the XmlNameTable associated with this implementation.

NodeTypeNodeTypeNodeTypeNodeType

When overridden in a derived class, gets the type of the current node.

PrefixPrefixPrefixPrefix

When overridden in a derived class, gets the namespace prefix associated with the current node.

The dialog box suggests different programs that you can use to download your picture files. Otherwise, you can damage the camera. Here are the most common possibilities and how to move forward: • On a Windows-based computer, a Windows message box appears. Transferring photos from your Nikon D3100, D5100, or D7000 to your computer After you connect the camera to the computer or insert a memory card into your card reader, your next step depends, again, on the software installed on your computer and the computer operating system. Nikon camera card reader for mac. Turn off the camera before severing its ties with the computer.

QuoteCharQuoteCharQuoteCharQuoteChar

When overridden in a derived class, gets the quotation mark character used to enclose the value of an attribute node.

ReadStateReadStateReadStateReadState

When overridden in a derived class, gets the state of the reader.

SchemaInfoSchemaInfoSchemaInfoSchemaInfo

Gets the schema information that has been assigned to the current node as a result of schema validation.

SettingsSettingsSettingsSettings

Gets the XmlReaderSettings object used to create this XmlReader instance.

ValueValueValueValue

When overridden in a derived class, gets the text value of the current node.

ValueTypeValueTypeValueTypeValueType

Gets The Common Language Runtime (CLR) type for the current node.

XmlLangXmlLangXmlLangXmlLang

When overridden in a derived class, gets the current xml:lang scope.

XmlSpaceXmlSpaceXmlSpaceXmlSpace

When overridden in a derived class, gets the current xml:space scope.

Word Document Reader For Mac

Methods

Close()Close()Close()Close()

When overridden in a derived class, changes the ReadState to Closed.

Create(Stream)Create(Stream)Create(Stream)Create(Stream)

Creates a new XmlReader instance using the specified stream with default settings.

Create(Stream, XmlReaderSettings)Create(Stream, XmlReaderSettings)Create(Stream, XmlReaderSettings)Create(Stream, XmlReaderSettings)

Creates a new XmlReader instance with the specified stream and settings.

Create(Stream, XmlReaderSettings, String)Create(Stream, XmlReaderSettings, String)Create(Stream, XmlReaderSettings, String)Create(Stream, XmlReaderSettings, String)

Creates a new XmlReader instance using the specified stream, base URI, and settings.

Create(Stream, XmlReaderSettings, XmlParserContext)Create(Stream, XmlReaderSettings, XmlParserContext)Create(Stream, XmlReaderSettings, XmlParserContext)Create(Stream, XmlReaderSettings, XmlParserContext)

Creates a new XmlReader instance using the specified stream, settings, and context information for parsing.

Create(String)Create(String)Create(String)Create(String)

Creates a new XmlReader instance with specified URI.

Create(String, XmlReaderSettings)Create(String, XmlReaderSettings)Create(String, XmlReaderSettings)Create(String, XmlReaderSettings)

Creates a new XmlReader instance by using the specified URI and settings.

Create(String, XmlReaderSettings, XmlParserContext)Create(String, XmlReaderSettings, XmlParserContext)Create(String, XmlReaderSettings, XmlParserContext)Create(String, XmlReaderSettings, XmlParserContext)

Creates a new XmlReader instance by using the specified URI, settings, and context information for parsing.

Create(TextReader)Create(TextReader)Create(TextReader)Create(TextReader)

Creates a new XmlReader instance by using the specified text reader.

Create(TextReader, XmlReaderSettings)Create(TextReader, XmlReaderSettings)Create(TextReader, XmlReaderSettings)Create(TextReader, XmlReaderSettings)

Creates a new XmlReader instance by using the specified text reader and settings.

Create(TextReader, XmlReaderSettings, String)Create(TextReader, XmlReaderSettings, String)Create(TextReader, XmlReaderSettings, String)Create(TextReader, XmlReaderSettings, String)

Creates a new XmlReader instance by using the specified text reader, settings, and base URI.

Create(TextReader, XmlReaderSettings, XmlParserContext)Create(TextReader, XmlReaderSettings, XmlParserContext)Create(TextReader, XmlReaderSettings, XmlParserContext)Create(TextReader, XmlReaderSettings, XmlParserContext)

Creates a new XmlReader instance by using the specified text reader, settings, and context information for parsing.

Create(XmlReader, XmlReaderSettings)Create(XmlReader, XmlReaderSettings)Create(XmlReader, XmlReaderSettings)Create(XmlReader, XmlReaderSettings)

Creates a new XmlReader instance by using the specified XML reader and settings.

Dispose()Dispose()Dispose()Dispose()

Releases all resources used by the current instance of the XmlReader class.

Dispose(Boolean)Dispose(Boolean)Dispose(Boolean)Dispose(Boolean)

Releases the unmanaged resources used by the XmlReader and optionally releases the managed resources.

Equals(Object)Equals(Object)Equals(Object)Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetAttribute(Int32)GetAttribute(Int32)GetAttribute(Int32)GetAttribute(Int32)

When overridden in a derived class, gets the value of the attribute with the specified index.

GetAttribute(String)GetAttribute(String)GetAttribute(String)GetAttribute(String)

When overridden in a derived class, gets the value of the attribute with the specified Name.

GetAttribute(String, String)GetAttribute(String, String)GetAttribute(String, String)GetAttribute(String, String)

When overridden in a derived class, gets the value of the attribute with the specified LocalName and NamespaceURI.

GetHashCode()GetHashCode()GetHashCode()GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()GetType()GetType()GetType()

Gets the Type of the current instance.

(Inherited from Object)
GetValueAsync()GetValueAsync()GetValueAsync()GetValueAsync()

Asynchronously gets the value of the current node.

IsName(String)IsName(String)IsName(String)IsName(String)

Returns a value indicating whether the string argument is a valid XML name.

IsNameToken(String)IsNameToken(String)IsNameToken(String)IsNameToken(String)

Returns a value indicating whether or not the string argument is a valid XML name token.

IsStartElement()IsStartElement()IsStartElement()IsStartElement()

Calls MoveToContent() and tests if the current content node is a start tag or empty element tag.

IsStartElement(String)IsStartElement(String)IsStartElement(String)IsStartElement(String)

Calls MoveToContent() and tests if the current content node is a start tag or empty element tag and if the Name property of the element found matches the given argument.

IsStartElement(String, String)IsStartElement(String, String)IsStartElement(String, String)IsStartElement(String, String)

Calls MoveToContent() and tests if the current content node is a start tag or empty element tag and if the LocalName and NamespaceURI properties of the element found match the given strings.

LookupNamespace(String)LookupNamespace(String)LookupNamespace(String)LookupNamespace(String)

When overridden in a derived class, resolves a namespace prefix in the current element's scope.

MemberwiseClone()MemberwiseClone()MemberwiseClone()MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
MoveToAttribute(Int32)MoveToAttribute(Int32)MoveToAttribute(Int32)MoveToAttribute(Int32)

When overridden in a derived class, moves to the attribute with the specified index.

MoveToAttribute(String)MoveToAttribute(String)MoveToAttribute(String)MoveToAttribute(String)

When overridden in a derived class, moves to the attribute with the specified Name.

MoveToAttribute(String, String)MoveToAttribute(String, String)MoveToAttribute(String, String)MoveToAttribute(String, String)

When overridden in a derived class, moves to the attribute with the specified LocalName and NamespaceURI.

MoveToContent()MoveToContent()MoveToContent()MoveToContent()

Checks whether the current node is a content (non-white space text, CDATA, Element, EndElement, EntityReference, or EndEntity) node. If the node is not a content node, the reader skips ahead to the next content node or end of file. It skips over nodes of the following type: ProcessingInstruction, DocumentType, Comment, Whitespace, or SignificantWhitespace.

MoveToContentAsync()MoveToContentAsync()MoveToContentAsync()MoveToContentAsync()

Asynchronously checks whether the current node is a content node. If the node is not a content node, the reader skips ahead to the next content node or end of file.

MoveToElement()MoveToElement()MoveToElement()MoveToElement()

When overridden in a derived class, moves to the element that contains the current attribute node.

MoveToFirstAttribute()MoveToFirstAttribute()MoveToFirstAttribute()MoveToFirstAttribute()

When overridden in a derived class, moves to the first attribute.

MoveToNextAttribute()MoveToNextAttribute()MoveToNextAttribute()MoveToNextAttribute()

When overridden in a derived class, moves to the next attribute.

Read()Read()Read()Read()

When overridden in a derived class, reads the next node from the stream.

ReadAsync()ReadAsync()ReadAsync()ReadAsync()

Asynchronously reads the next node from the stream.

ReadAttributeValue()ReadAttributeValue()ReadAttributeValue()ReadAttributeValue()

When overridden in a derived class, parses the attribute value into one or more Text, EntityReference, or EndEntity nodes.

ReadContentAs(Type, IXmlNamespaceResolver)ReadContentAs(Type, IXmlNamespaceResolver)ReadContentAs(Type, IXmlNamespaceResolver)ReadContentAs(Type, IXmlNamespaceResolver)

Reads the content as an object of the type specified.

ReadContentAsAsync(Type, IXmlNamespaceResolver)ReadContentAsAsync(Type, IXmlNamespaceResolver)ReadContentAsAsync(Type, IXmlNamespaceResolver)ReadContentAsAsync(Type, IXmlNamespaceResolver)

Asynchronously reads the content as an object of the type specified.

ReadContentAsBase64(Byte[], Int32, Int32)ReadContentAsBase64(Byte[], Int32, Int32)ReadContentAsBase64(Byte[], Int32, Int32)ReadContentAsBase64(Byte[], Int32, Int32)

Reads the content and returns the Base64 decoded binary bytes.

ReadContentAsBase64Async(Byte[], Int32, Int32)ReadContentAsBase64Async(Byte[], Int32, Int32)ReadContentAsBase64Async(Byte[], Int32, Int32)ReadContentAsBase64Async(Byte[], Int32, Int32)

Asynchronously reads the content and returns the Base64 decoded binary bytes.

ReadContentAsBinHex(Byte[], Int32, Int32)ReadContentAsBinHex(Byte[], Int32, Int32)ReadContentAsBinHex(Byte[], Int32, Int32)ReadContentAsBinHex(Byte[], Int32, Int32)

Reads the content and returns the BinHex decoded binary bytes.

ReadContentAsBinHexAsync(Byte[], Int32, Int32)ReadContentAsBinHexAsync(Byte[], Int32, Int32)ReadContentAsBinHexAsync(Byte[], Int32, Int32)ReadContentAsBinHexAsync(Byte[], Int32, Int32)

Asynchronously reads the content and returns the BinHex decoded binary bytes.

ReadContentAsBoolean()ReadContentAsBoolean()ReadContentAsBoolean()ReadContentAsBoolean()

Reads the text content at the current position as a Boolean.

ReadContentAsDateTime()ReadContentAsDateTime()ReadContentAsDateTime()ReadContentAsDateTime()

Reads the text content at the current position as a DateTime object.

ReadContentAsDateTimeOffset()ReadContentAsDateTimeOffset()ReadContentAsDateTimeOffset()ReadContentAsDateTimeOffset()

Reads the text content at the current position as a DateTimeOffset object.

ReadContentAsDecimal()ReadContentAsDecimal()ReadContentAsDecimal()ReadContentAsDecimal()

Reads the text content at the current position as a Decimal object.

ReadContentAsDouble()ReadContentAsDouble()ReadContentAsDouble()ReadContentAsDouble()

Reads the text content at the current position as a double-precision floating-point number.

ReadContentAsFloat()ReadContentAsFloat()ReadContentAsFloat()ReadContentAsFloat()

Reads the text content at the current position as a single-precision floating point number.

ReadContentAsInt()ReadContentAsInt()ReadContentAsInt()ReadContentAsInt()

Reads the text content at the current position as a 32-bit signed integer.

ReadContentAsLong()ReadContentAsLong()ReadContentAsLong()ReadContentAsLong()

Reads the text content at the current position as a 64-bit signed integer.

ReadContentAsObject()ReadContentAsObject()ReadContentAsObject()ReadContentAsObject()

Reads the text content at the current position as an Object.

ReadContentAsObjectAsync()ReadContentAsObjectAsync()ReadContentAsObjectAsync()ReadContentAsObjectAsync()

Asynchronously reads the text content at the current position as an Object.

ReadContentAsString()ReadContentAsString()ReadContentAsString()ReadContentAsString()

Reads the text content at the current position as a String object.

ReadContentAsStringAsync()ReadContentAsStringAsync()ReadContentAsStringAsync()ReadContentAsStringAsync()

Asynchronously reads the text content at the current position as a String object.

ReadElementContentAs(Type, IXmlNamespaceResolver)ReadElementContentAs(Type, IXmlNamespaceResolver)ReadElementContentAs(Type, IXmlNamespaceResolver)ReadElementContentAs(Type, IXmlNamespaceResolver)

Reads the element content as the requested type.

ReadElementContentAs(Type, IXmlNamespaceResolver, String, String)ReadElementContentAs(Type, IXmlNamespaceResolver, String, String)ReadElementContentAs(Type, IXmlNamespaceResolver, String, String)ReadElementContentAs(Type, IXmlNamespaceResolver, String, String)

Checks that the specified local name and namespace URI matches that of the current element, then reads the element content as the requested type.

ReadElementContentAsAsync(Type, IXmlNamespaceResolver)ReadElementContentAsAsync(Type, IXmlNamespaceResolver)ReadElementContentAsAsync(Type, IXmlNamespaceResolver)ReadElementContentAsAsync(Type, IXmlNamespaceResolver)

Asynchronously reads the element content as the requested type.

ReadElementContentAsBase64(Byte[], Int32, Int32)ReadElementContentAsBase64(Byte[], Int32, Int32)ReadElementContentAsBase64(Byte[], Int32, Int32)ReadElementContentAsBase64(Byte[], Int32, Int32)

Reads the element and decodes the Base64 content.

ReadElementContentAsBase64Async(Byte[], Int32, Int32)ReadElementContentAsBase64Async(Byte[], Int32, Int32)ReadElementContentAsBase64Async(Byte[], Int32, Int32)ReadElementContentAsBase64Async(Byte[], Int32, Int32)

Asynchronously reads the element and decodes the Base64 content.

ReadElementContentAsBinHex(Byte[], Int32, Int32)ReadElementContentAsBinHex(Byte[], Int32, Int32)ReadElementContentAsBinHex(Byte[], Int32, Int32)ReadElementContentAsBinHex(Byte[], Int32, Int32)

Reads the element and decodes the BinHex content.

ReadElementContentAsBinHexAsync(Byte[], Int32, Int32)ReadElementContentAsBinHexAsync(Byte[], Int32, Int32)ReadElementContentAsBinHexAsync(Byte[], Int32, Int32)ReadElementContentAsBinHexAsync(Byte[], Int32, Int32)

Asynchronously reads the element and decodes the BinHex content.

ReadElementContentAsBoolean()ReadElementContentAsBoolean()ReadElementContentAsBoolean()ReadElementContentAsBoolean()

Reads the current element and returns the contents as a Boolean object.

ReadElementContentAsBoolean(String, String)ReadElementContentAsBoolean(String, String)ReadElementContentAsBoolean(String, String)ReadElementContentAsBoolean(String, String)

Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the contents as a Boolean object.

ReadElementContentAsDateTime()ReadElementContentAsDateTime()ReadElementContentAsDateTime()ReadElementContentAsDateTime()

Reads the current element and returns the contents as a DateTime object.

ReadElementContentAsDateTime(String, String)ReadElementContentAsDateTime(String, String)ReadElementContentAsDateTime(String, String)ReadElementContentAsDateTime(String, String)

Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the contents as a DateTime object.

ReadElementContentAsDecimal()ReadElementContentAsDecimal()ReadElementContentAsDecimal()ReadElementContentAsDecimal()

Reads the current element and returns the contents as a Decimal object.

ReadElementContentAsDecimal(String, String)ReadElementContentAsDecimal(String, String)ReadElementContentAsDecimal(String, String)ReadElementContentAsDecimal(String, String)

Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the contents as a Decimal object.

ReadElementContentAsDouble()ReadElementContentAsDouble()ReadElementContentAsDouble()ReadElementContentAsDouble()

Reads the current element and returns the contents as a double-precision floating-point number.

ReadElementContentAsDouble(String, String)ReadElementContentAsDouble(String, String)ReadElementContentAsDouble(String, String)ReadElementContentAsDouble(String, String)

Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the contents as a double-precision floating-point number.

ReadElementContentAsFloat()ReadElementContentAsFloat()ReadElementContentAsFloat()ReadElementContentAsFloat()

Reads the current element and returns the contents as single-precision floating-point number.

ReadElementContentAsFloat(String, String)ReadElementContentAsFloat(String, String)ReadElementContentAsFloat(String, String)ReadElementContentAsFloat(String, String)

Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the contents as a single-precision floating-point number.

ReadElementContentAsInt()ReadElementContentAsInt()ReadElementContentAsInt()ReadElementContentAsInt()

Reads the current element and returns the contents as a 32-bit signed integer.

ReadElementContentAsInt(String, String)ReadElementContentAsInt(String, String)ReadElementContentAsInt(String, String)ReadElementContentAsInt(String, String)

Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the contents as a 32-bit signed integer.

ReadElementContentAsLong()ReadElementContentAsLong()ReadElementContentAsLong()ReadElementContentAsLong()

Reads the current element and returns the contents as a 64-bit signed integer.

ReadElementContentAsLong(String, String)ReadElementContentAsLong(String, String)ReadElementContentAsLong(String, String)ReadElementContentAsLong(String, String)

Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the contents as a 64-bit signed integer.

ReadElementContentAsObject()ReadElementContentAsObject()ReadElementContentAsObject()ReadElementContentAsObject()

Reads the current element and returns the contents as an Object.

ReadElementContentAsObject(String, String)ReadElementContentAsObject(String, String)ReadElementContentAsObject(String, String)ReadElementContentAsObject(String, String)

Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the contents as an Object.

ReadElementContentAsObjectAsync()ReadElementContentAsObjectAsync()ReadElementContentAsObjectAsync()ReadElementContentAsObjectAsync()

Asynchronously reads the current element and returns the contents as an Object.

ReadElementContentAsString()ReadElementContentAsString()ReadElementContentAsString()ReadElementContentAsString()

Reads the current element and returns the contents as a String object.

ReadElementContentAsString(String, String)ReadElementContentAsString(String, String)ReadElementContentAsString(String, String)ReadElementContentAsString(String, String)

Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the contents as a String object.

ReadElementContentAsStringAsync()ReadElementContentAsStringAsync()ReadElementContentAsStringAsync()ReadElementContentAsStringAsync()

Asynchronously reads the current element and returns the contents as a String object.

ReadElementString()ReadElementString()ReadElementString()ReadElementString()

Reads a text-only element. However, we recommend that you use the ReadElementContentAsString() method instead, because it provides a more straightforward way to handle this operation.

ReadElementString(String)ReadElementString(String)ReadElementString(String)ReadElementString(String)

Checks that the Name property of the element found matches the given string before reading a text-only element. However, we recommend that you use the ReadElementContentAsString() method instead, because it provides a more straightforward way to handle this operation.

ReadElementString(String, String)ReadElementString(String, String)ReadElementString(String, String)ReadElementString(String, String)

Checks that the LocalName and NamespaceURI properties of the element found matches the given strings before reading a text-only element. However, we recommend that you use the ReadElementContentAsString(String, String) method instead, because it provides a more straightforward way to handle this operation.

ReadEndElement()ReadEndElement()ReadEndElement()ReadEndElement()

Checks that the current content node is an end tag and advances the reader to the next node.

ReadInnerXml()ReadInnerXml()ReadInnerXml()ReadInnerXml()

When overridden in a derived class, reads all the content, including markup, as a string.

ReadInnerXmlAsync()ReadInnerXmlAsync()ReadInnerXmlAsync()ReadInnerXmlAsync()

Asynchronously reads all the content, including markup, as a string.

ReadOuterXml()ReadOuterXml()ReadOuterXml()ReadOuterXml()

When overridden in a derived class, reads the content, including markup, representing this node and all its children.

ReadOuterXmlAsync()ReadOuterXmlAsync()ReadOuterXmlAsync()ReadOuterXmlAsync()

Asynchronously reads the content, including markup, representing this node and all its children.

ReadStartElement()ReadStartElement()ReadStartElement()ReadStartElement()

Checks that the current node is an element and advances the reader to the next node.

ReadStartElement(String)ReadStartElement(String)ReadStartElement(String)ReadStartElement(String)

Checks that the current content node is an element with the given Name and advances the reader to the next node.

ReadStartElement(String, String)ReadStartElement(String, String)ReadStartElement(String, String)ReadStartElement(String, String)

Checks that the current content node is an element with the given LocalName and NamespaceURI and advances the reader to the next node.

ReadString()ReadString()ReadString()ReadString()

When overridden in a derived class, reads the contents of an element or text node as a string. However, we recommend that you use the ReadElementContentAsString method instead, because it provides a more straightforward way to handle this operation.

ReadSubtree()ReadSubtree()ReadSubtree()ReadSubtree()

Returns a new XmlReader instance that can be used to read the current node, and all its descendants.

ReadToDescendant(String)ReadToDescendant(String)ReadToDescendant(String)ReadToDescendant(String)

Advances the XmlReader to the next descendant element with the specified qualified name.

ReadToDescendant(String, String)ReadToDescendant(String, String)ReadToDescendant(String, String)ReadToDescendant(String, String)

Advances the XmlReader to the next descendant element with the specified local name and namespace URI.

ReadToFollowing(String)ReadToFollowing(String)ReadToFollowing(String)ReadToFollowing(String)

Reads until an element with the specified qualified name is found.

ReadToFollowing(String, String)ReadToFollowing(String, String)ReadToFollowing(String, String)ReadToFollowing(String, String)

Reads until an element with the specified local name and namespace URI is found.

ReadToNextSibling(String)ReadToNextSibling(String)ReadToNextSibling(String)ReadToNextSibling(String)

Advances the XmlReader to the next sibling element with the specified qualified name.

ReadToNextSibling(String, String)ReadToNextSibling(String, String)ReadToNextSibling(String, String)ReadToNextSibling(String, String)

Advances the XmlReader to the next sibling element with the specified local name and namespace URI.

ReadValueChunk(Char[], Int32, Int32)ReadValueChunk(Char[], Int32, Int32)ReadValueChunk(Char[], Int32, Int32)ReadValueChunk(Char[], Int32, Int32)

Reads large streams of text embedded in an XML document.

ReadValueChunkAsync(Char[], Int32, Int32)ReadValueChunkAsync(Char[], Int32, Int32)ReadValueChunkAsync(Char[], Int32, Int32)ReadValueChunkAsync(Char[], Int32, Int32)

Asynchronously reads large streams of text embedded in an XML document.

ResolveEntity()ResolveEntity()ResolveEntity()ResolveEntity()

When overridden in a derived class, resolves the entity reference for EntityReference nodes.

Skip()Skip()Skip()Skip()

Skips the children of the current node.

SkipAsync()SkipAsync()SkipAsync()SkipAsync()

Asynchronously skips the children of the current node.

ToString()ToString()ToString()ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IDisposable.Dispose()IDisposable.Dispose()IDisposable.Dispose()IDisposable.Dispose()

For a description of this member, see Dispose().

Free Word Document Reader For Mac

Applies to

Download Xml Reader

See also