Show / Hide Table of Contents

    XML Reader

    Functions to read XML.

    This XML Reader is mainly used for sequential reading of XML.

    This codeunit can help to write maintainable and easy to read code when parsing XML data. No need to declare a lot of XML variables, only this codeunit and a few integers are needed.

    Object Definition

    Object TypeCodeunit
    Object ID70327082
    Object NameQWETB XML Reader

    Procedures

    Name Description
    CloseNodeList(Integer) Closes a node list, freeing resources.
    ExportToClientFileDialog(Text) Exports the XML to a file that the user can save.
    GetLength(Integer): Integer Gets the length of a node list.
    GetNextNode(Integer): Boolean Navigates to the next node in the node list with the given Id.
    GetValue(Integer; Text): Text Gets a value as text from a XPath under the current node in the given node list.
    GetValueBool(Integer; Text): Boolean Gets a value as boolean from a XPath under the current node in the given node list.
    GetValueDate(Integer; Text): Date Gets a value as date from a XPath under the current node in the given node list.
    GetValueDateTime(Integer; Text): DateTime Gets a value as datetime from a XPath under the current node in the given node list.
    GetValueDec(Integer; Text): Decimal Gets a value as decimal from a XPath under the current node in the given node list.
    GetValueInt(Integer; Text): Integer Gets a value as integer from a XPath under the current node in the given node list.
    GetValueTime(Integer; Text): Time Gets a value as time from a XPath under the current node in the given node list.
    GetXML(): Text Gets the XML as text.
    LoadFromClientFile(Text; Text): Integer Prompts the user to upload an XML file that can be loaded.
    LoadFromInStream(InStream; Text): Integer Loads the XML from an InStream.
    LoadFromTempBlob(Codeunit "QWETB Temp Blob"; Text): Integer Loads the XML from a blob.
    LoadFromTempBlob(Codeunit "Temp Blob"; Text): Integer Loads the XML from a blob.
    LoadFromTempBlob(Record "QWETB tTempBlob" temporary; Text): Integer Loads the XML from a temp blob table.
    LoadFromXml(Text; Text): Integer Loads the XML from an XML string.
    LoadFromXmlDocument(XmlDocument; Text): Integer Loads the XML from an XmlDocument.
    NodeExists(Integer; Text): Boolean Checks if a node exists in a given XPath under the current node in the given node list.
    SaveBase64ToTempBlob(Integer; Text; Codeunit "QWETB Temp Blob") Gets a Base64 value from a given XPath under the current node in the given node list and saves the decoded value to a TempBlob codeunit.
    SaveBase64ToTempBlob(Integer; Text; Codeunit "Temp Blob") Gets a Base64 value from a given XPath under the current node in the given node list and saves the decoded value to a TempBlob codeunit.
    SaveBase64ToTempBlob(Integer; Text; Record "QWETB tTempBlob" temporary) Gets a Base64 value from a XPath under the current node in the given node list and saves the decoded value to a blob.
    SaveToTempBlob(Codeunit "QWETB Temp Blob") Saves the XML to a TempBlob codeunit.
    SaveToTempBlob(Codeunit "Temp Blob") Saves the XML to a TempBlob codeunit.
    SaveToTempBlob(Record "QWETB tTempBlob" temporary) Saves the XML to a blob.
    SelectNodes(Integer; Text): Integer Selects a new node list relative to a parent node list.
    SetNameSpace(Text; Text) Sets a NameSpace with a given prefix, that should be used when reading the XML Data.
    UseNS(): Boolean Checks if NameSpaces are activated for this XML Reader.

    This documentation is generated from Smart Toolbox v26.0.240276.0

    Back to top Copyright © 2020 SmartApps
    Generated by DocFX