xml-class-transformer / ClassToXmlOptions
-
JS2XML↳
ClassToXmlOptions
- attributeNameFn
- attributeValueFn
- attributesFn
- attributesKey
- avoidDoubleSanitization
- cdataFn
- cdataKey
- commentFn
- commentKey
- compact
- declaration
- declarationKey
- doctypeFn
- doctypeKey
- elementNameFn
- elementsKey
- fullTagEmptyElement
- fullTagEmptyElementFn
- ignoreAttributes
- ignoreCdata
- ignoreComment
- ignoreDeclaration
- ignoreDoctype
- ignoreInstruction
- ignoreText
- indentAttributes
- indentCdata
- indentInstruction
- indentText
- instructionFn
- instructionKey
- instructionNameFn
- nameKey
- noQuotesForNativeAttributes
- parentKey
- spaces
- textFn
- textKey
- typeKey
• Optional attributeNameFn: (attributeName: string, attributeValue: string, currentElementName: string, currentElementObj: object) => void
▸ (attributeName, attributeValue, currentElementName, currentElementObj): void
| Name | Type |
|---|---|
attributeName |
string |
attributeValue |
string |
currentElementName |
string |
currentElementObj |
object |
void
xmljs.Options.JS2XML.attributeNameFn
node_modules/xml-js-v2/types/index.d.ts:119
• Optional attributeValueFn: (attributeValue: string, attributeName: string, currentElementName: string, currentElementObj: object) => void
▸ (attributeValue, attributeName, currentElementName, currentElementObj): void
| Name | Type |
|---|---|
attributeValue |
string |
attributeName |
string |
currentElementName |
string |
currentElementObj |
object |
void
xmljs.Options.JS2XML.attributeValueFn
node_modules/xml-js-v2/types/index.d.ts:125
• Optional attributesFn: (value: string, currentElementName: string, currentElementObj: object) => void
▸ (value, currentElementName, currentElementObj): void
| Name | Type |
|---|---|
value |
string |
currentElementName |
string |
currentElementObj |
object |
void
xmljs.Options.JS2XML.attributesFn
node_modules/xml-js-v2/types/index.d.ts:131
• Optional attributesKey: string
xmljs.Options.JS2XML.attributesKey
node_modules/xml-js-v2/types/index.d.ts:148
• Optional avoidDoubleSanitization: boolean
If set to true, it will not sanitize already escaped characters.
If this is not set or set to false, then a string like & & will be converted to & &.
If this is set to true, then & & will be converted to & &.
Default
false
xmljs.Options.JS2XML.avoidDoubleSanitization
node_modules/xml-js-v2/types/index.d.ts:101
• Optional cdataFn: (value: string, currentElementName: string, currentElementObj: object) => void
▸ (value, currentElementName, currentElementObj): void
| Name | Type |
|---|---|
value |
string |
currentElementName |
string |
currentElementObj |
object |
void
xmljs.Options.JS2XML.cdataFn
node_modules/xml-js-v2/types/index.d.ts:109
• Optional cdataKey: string
xmljs.Options.JS2XML.cdataKey
node_modules/xml-js-v2/types/index.d.ts:150
• Optional commentFn: (value: string, currentElementName: string, currentElementObj: object) => void
▸ (value, currentElementName, currentElementObj): void
| Name | Type |
|---|---|
value |
string |
currentElementName |
string |
currentElementObj |
object |
void
xmljs.Options.JS2XML.commentFn
node_modules/xml-js-v2/types/index.d.ts:110
• Optional commentKey: string
xmljs.Options.JS2XML.commentKey
node_modules/xml-js-v2/types/index.d.ts:152
• Optional compact: boolean
xmljs.Options.JS2XML.compact
node_modules/xml-js-v2/types/index.d.ts:86
• Optional declaration: boolean | { attributes?: DeclarationAttributes }
Whether to include the default declaration line <?xml version="1.0" encoding="UTF-8"?> or not.
Default
true
• Optional declarationKey: string
xmljs.Options.JS2XML.declarationKey
node_modules/xml-js-v2/types/index.d.ts:146
• Optional doctypeFn: (value: string, currentElementName: string, currentElementObj: object) => void
▸ (value, currentElementName, currentElementObj): void
| Name | Type |
|---|---|
value |
string |
currentElementName |
string |
currentElementObj |
object |
void
xmljs.Options.JS2XML.doctypeFn
node_modules/xml-js-v2/types/index.d.ts:102
• Optional doctypeKey: string
xmljs.Options.JS2XML.doctypeKey
node_modules/xml-js-v2/types/index.d.ts:151
• Optional elementNameFn: (value: string, currentElementName: string, currentElementObj: object) => void
▸ (value, currentElementName, currentElementObj): void
| Name | Type |
|---|---|
value |
string |
currentElementName |
string |
currentElementObj |
object |
void
xmljs.Options.JS2XML.elementNameFn
node_modules/xml-js-v2/types/index.d.ts:118
• Optional elementsKey: string
xmljs.Options.JS2XML.elementsKey
node_modules/xml-js-v2/types/index.d.ts:156
• Optional fullTagEmptyElement: boolean
xmljs.Options.JS2XML.fullTagEmptyElement
node_modules/xml-js-v2/types/index.d.ts:91
• Optional fullTagEmptyElementFn: (currentElementName: string, currentElementObj: object) => void
▸ (currentElementName, currentElementObj): void
| Name | Type |
|---|---|
currentElementName |
string |
currentElementObj |
object |
void
xmljs.Options.JS2XML.fullTagEmptyElementFn
node_modules/xml-js-v2/types/index.d.ts:132
• Optional ignoreAttributes: boolean
xmljs.Options.JS2XML.ignoreAttributes
node_modules/xml-js-v2/types/index.d.ts:138
• Optional ignoreCdata: boolean
xmljs.Options.JS2XML.ignoreCdata
node_modules/xml-js-v2/types/index.d.ts:140
• Optional ignoreComment: boolean
xmljs.Options.JS2XML.ignoreComment
node_modules/xml-js-v2/types/index.d.ts:139
• Optional ignoreDeclaration: boolean
xmljs.Options.JS2XML.ignoreDeclaration
node_modules/xml-js-v2/types/index.d.ts:136
• Optional ignoreDoctype: boolean
xmljs.Options.JS2XML.ignoreDoctype
node_modules/xml-js-v2/types/index.d.ts:141
• Optional ignoreInstruction: boolean
xmljs.Options.JS2XML.ignoreInstruction
node_modules/xml-js-v2/types/index.d.ts:137
• Optional ignoreText: boolean
xmljs.Options.JS2XML.ignoreText
node_modules/xml-js-v2/types/index.d.ts:142
• Optional indentAttributes: boolean
xmljs.Options.JS2XML.indentAttributes
node_modules/xml-js-v2/types/index.d.ts:89
• Optional indentCdata: boolean
xmljs.Options.JS2XML.indentCdata
node_modules/xml-js-v2/types/index.d.ts:88
• Optional indentInstruction: boolean
xmljs.Options.JS2XML.indentInstruction
node_modules/xml-js-v2/types/index.d.ts:90
• Optional indentText: boolean
xmljs.Options.JS2XML.indentText
node_modules/xml-js-v2/types/index.d.ts:87
• Optional instructionFn: (instructionValue: string, instructionName: string, currentElementName: string, currentElementObj: object) => void
▸ (instructionValue, instructionName, currentElementName, currentElementObj): void
| Name | Type |
|---|---|
instructionValue |
string |
instructionName |
string |
currentElementName |
string |
currentElementObj |
object |
void
xmljs.Options.JS2XML.instructionFn
node_modules/xml-js-v2/types/index.d.ts:103
• Optional instructionKey: string
xmljs.Options.JS2XML.instructionKey
node_modules/xml-js-v2/types/index.d.ts:147
• Optional instructionNameFn: (instructionName: string, instructionValue: string, currentElementName: string, currentElementObj: object) => void
▸ (instructionName, instructionValue, currentElementName, currentElementObj): void
| Name | Type |
|---|---|
instructionName |
string |
instructionValue |
string |
currentElementName |
string |
currentElementObj |
object |
void
xmljs.Options.JS2XML.instructionNameFn
node_modules/xml-js-v2/types/index.d.ts:112
• Optional nameKey: string
xmljs.Options.JS2XML.nameKey
node_modules/xml-js-v2/types/index.d.ts:155
• Optional noQuotesForNativeAttributes: boolean
xmljs.Options.JS2XML.noQuotesForNativeAttributes
node_modules/xml-js-v2/types/index.d.ts:92
• Optional parentKey: string
xmljs.Options.JS2XML.parentKey
node_modules/xml-js-v2/types/index.d.ts:153
• Optional spaces: string | number
xmljs.Options.JS2XML.spaces
node_modules/xml-js-v2/types/index.d.ts:85
• Optional textFn: (value: string, currentElementName: string, currentElementObj: object) => void
▸ (value, currentElementName, currentElementObj): void
| Name | Type |
|---|---|
value |
string |
currentElementName |
string |
currentElementObj |
object |
void
xmljs.Options.JS2XML.textFn
node_modules/xml-js-v2/types/index.d.ts:111
• Optional textKey: string
xmljs.Options.JS2XML.textKey
node_modules/xml-js-v2/types/index.d.ts:149
• Optional typeKey: string
xmljs.Options.JS2XML.typeKey
node_modules/xml-js-v2/types/index.d.ts:154