[#BloombergLP-balxml-ValidatingReader] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::ValidatingReader :relfileprefix: ../../ :mrdocs: TBD Class description == Synopsis Declared in `<balxml_validatingreader.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class ValidatingReader : public xref:BloombergLP/balxml/Reader.adoc[Reader] ---- == Base Classes [cols="1,4"] |=== | Name| Description | `xref:BloombergLP/balxml/Reader.adoc[Reader]` | This abstract class defines an interface for fast, forward‐only access to XML data. |=== == Type Aliases [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balxml/Reader/StreamBufPtr.adoc[`StreamBufPtr`] | Managed pointer to a `bsl::streambuf` used for external entity input. | xref:BloombergLP/balxml/Reader/XmlResolverFunctor.adoc[`XmlResolverFunctor`] | Type for a user‐supplied functor that opens an external XML resource. |=== == Enums [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balxml/Reader/NodeType-02.adoc[`NodeType`] | Node types returned by `nodeType`, representing XML syntactic constructs within a document. Not every `Reader` implementation distinguishes all node types. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balxml/ValidatingReader/2destructor.adoc[`~ValidatingReader`] [.small]#[destructor]# [.small]#[virtual]# | Destroy this object. | xref:BloombergLP/balxml/ValidatingReader/addSchema.adoc[`addSchema`] [.small]#[virtual]# | Associate the specified `location` with the XSD document in the specified `schema` stream. | xref:BloombergLP/balxml/Reader/advanceToNextNode.adoc[`advanceToNextNode`] [.small]#[virtual]# | Move to the next node in the data stream created by `open`. | xref:BloombergLP/balxml/Reader/close.adoc[`close`] [.small]#[virtual]# | Close the reader. | xref:BloombergLP/balxml/Reader/documentEncoding.adoc[`documentEncoding`] [.small]#[virtual]# | Return the document encoding or NULL on error. | xref:BloombergLP/balxml/Reader/dumpNode.adoc[`dumpNode`] | Print the information about the current node to the specified output `os` stream. | xref:BloombergLP/balxml/ValidatingReader/enableValidation.adoc[`enableValidation`] [.small]#[virtual]# | Enable or disable XML validation. | xref:BloombergLP/balxml/Reader/errorInfo.adoc[`errorInfo`] [.small]#[virtual]# | Return a reference to the non‐modifiable error information for this reader. The returned value becomes invalid when `close` is called or the reader is destroyed. | xref:BloombergLP/balxml/Reader/getColumnNumber.adoc[`getColumnNumber`] [.small]#[virtual]# | Return the current column number within the input stream. | xref:BloombergLP/balxml/Reader/getLineNumber.adoc[`getLineNumber`] [.small]#[virtual]# | Return the current line number within the input stream. | xref:BloombergLP/balxml/Reader/isEmptyElement.adoc[`isEmptyElement`] [.small]#[virtual]# | Return true if the current node is an empty element. | xref:BloombergLP/balxml/Reader/isError.adoc[`isError`] | Return `true` if the derived object encountered a error. This method is equivalent to a call to `errorInfo().isError();` | xref:BloombergLP/balxml/Reader/isFatalError.adoc[`isFatalError`] | Return `true` if the derived object encountered a fatal error. This method is equivalent to a call to `errorInfo().isFatalError();` | xref:BloombergLP/balxml/Reader/isOpen.adoc[`isOpen`] [.small]#[virtual]# | Return true if `open` was called successfully and `close` has not yet been called and false otherwise. | xref:BloombergLP/balxml/Reader/isWarning.adoc[`isWarning`] | Return `true` if the derived object encountered a warning. This method is equivalent to a call to `errorInfo().isWarning();` | xref:BloombergLP/balxml/Reader/lookupAttribute-0f.adoc[`lookupAttribute`] | `lookupAttribute` overloads | xref:BloombergLP/balxml/Reader/nodeBaseUri.adoc[`nodeBaseUri`] [.small]#[virtual]# | Return the base URI of the current node. | xref:BloombergLP/balxml/Reader/nodeDepth.adoc[`nodeDepth`] [.small]#[virtual]# | Return the nesting depth of the current node in the XML document. The root node has depth 0. | xref:BloombergLP/balxml/Reader/nodeHasValue.adoc[`nodeHasValue`] [.small]#[virtual]# | Return true if the current node has a value and false otherwise. | xref:BloombergLP/balxml/Reader/nodeLocalName.adoc[`nodeLocalName`] [.small]#[virtual]# | Return the local name of the current node. | xref:BloombergLP/balxml/Reader/nodeName.adoc[`nodeName`] [.small]#[virtual]# | Return the qualified name of the current node. | xref:BloombergLP/balxml/Reader/nodeNamespaceId.adoc[`nodeNamespaceId`] [.small]#[virtual]# | Return the namespace ID of the current node if the current node has a namespace id and a negative number otherwise. | xref:BloombergLP/balxml/Reader/nodeNamespaceUri.adoc[`nodeNamespaceUri`] [.small]#[virtual]# | Return the namespace URI of the current node. | xref:BloombergLP/balxml/Reader/nodePrefix.adoc[`nodePrefix`] [.small]#[virtual]# | Return the prefix name of the current node. | xref:BloombergLP/balxml/Reader/nodeType-05.adoc[`nodeType`] [.small]#[virtual]# | Return the node type of the current node if the reader `isOpen` and has not encounter an error and `Reader::NONE` otherwise. | xref:BloombergLP/balxml/Reader/nodeValue.adoc[`nodeValue`] [.small]#[virtual]# | Return the value of the current node. | xref:BloombergLP/balxml/Reader/numAttributes.adoc[`numAttributes`] [.small]#[virtual]# | Return the number of attributes for the current node if that node has attributes and 0 otherwise. | xref:BloombergLP/balxml/Reader/open-0e.adoc[`open`] | `open` overloads | xref:BloombergLP/balxml/Reader/options.adoc[`options`] [.small]#[virtual]# | Return the option flags. | xref:BloombergLP/balxml/Reader/prefixStack.adoc[`prefixStack`] [.small]#[virtual]# | Return a pointer to the modifiable prefix stack used by this reader. | xref:BloombergLP/balxml/ValidatingReader/removeSchemas.adoc[`removeSchemas`] [.small]#[virtual]# | Remove all location‐to‐schema associations added by `addSchema`. | xref:BloombergLP/balxml/Reader/resolver.adoc[`resolver`] [.small]#[virtual]# | Return the external XML resource resolver. | xref:BloombergLP/balxml/Reader/setOptions.adoc[`setOptions`] [.small]#[virtual]# | Set the options to the flags in the specified `flags`. | xref:BloombergLP/balxml/Reader/setPrefixStack.adoc[`setPrefixStack`] [.small]#[virtual]# | Set the prefix stack to the stack at the specified `prefixes` address. | xref:BloombergLP/balxml/Reader/setResolver.adoc[`setResolver`] [.small]#[virtual]# | Set the external XML resource resolver to the specified `resolver`. | xref:BloombergLP/balxml/ValidatingReader/validationFlag.adoc[`validationFlag`] [.small]#[virtual]# | Return `true` if the reader has validation turned on, and `false` otherwise. |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balxml/Reader/nodeTypeAsString.adoc[`nodeTypeAsString`] | Return a string representation for the specified `nodeType` code or "(* UNKNOWN NODE TYPE *)" if nodeType is not one of the values enumerated in `NodeType`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#