xmlFactory.d.ts 557 B

12345678910111213141516171819
  1. import { BeanStub } from "./context/beanStub";
  2. export declare class XmlFactory extends BeanStub {
  3. createXml(xmlElement: XmlElement, booleanTransformer?: (currentValue: boolean) => string): string;
  4. private returnAttributeIfPopulated;
  5. }
  6. export interface XmlElement {
  7. name: string;
  8. properties?: XmlAttributes;
  9. children?: XmlElement[];
  10. textNode?: string;
  11. }
  12. export interface XmlAttributes {
  13. prefixedAttributes?: PrefixedXmlAttributes[];
  14. rawMap?: any;
  15. }
  16. export interface PrefixedXmlAttributes {
  17. prefix: string;
  18. map: any;
  19. }