INExmlToSchema: Build an object of class StfwfSchema.

Description Usage Arguments Value See Also Examples

View source: R/INExmlToSchema.R

Description

xmlToSchema is a constructor of the class StfwfSchema.

This constructor reads an xml file containing totally the schema of the fixed-width file to read. This file contains a root node named Schema, a secondary root node named Variables and one node var for each variable of the Schema who has the following child nodes:

Usage

1
INExmlToSchema(xmlName = NULL, xmlSchema = NULL)

Arguments

xmlName

Path of the xml file containing the schema.

xmlSchema

Object of class xml_document-class containing the schema.

Value

Return an object of class StfwfSchema.

See Also

INExlsxToSchema INExlsxToXML

Examples

1
2
xmlName <- file.path(system.file('extdata', package = 'fastReadfwf'), 'dr_EESEadulto_2020.xml')
output <- INExmlToSchema(xmlName)

david-salgado/fastReadfwf documentation built on Dec. 25, 2021, 12:43 p.m.