Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "file/xml-components/imported-xml-component"

Index

Functions

convertToXmlComponent

  • Converts the given xml element (in json format) into XmlComponent. Note: If element is array, them it will return ImportedXmlComponent[]. Example for given: element = [ { w:t: "val 1"}, { w:t: "val 2"} ] will return [ ImportedXmlComponent { rootKey: "w:t", root: [ "val 1" ]}, ImportedXmlComponent { rootKey: "w:t", root: [ "val 2" ]} ]

    Parameters

    • elementName: string

      name (rootKey) of the XmlComponent

    • element: any

      the xml element in json presentation

    Returns ImportedXmlComponent | ImportedXmlComponent[]

Object literals

Const parseOptions

parseOptions: object

attrNodeName

attrNodeName: string = "_attr"

attributeNamePrefix

attributeNamePrefix: string = ""

ignoreAttributes

ignoreAttributes: boolean = false

Generated using TypeDoc