Skip to content

ResultS of complicated content are wrong #39

Description

@yihchu

I ran this,

let example3 = { annotation: {xxx: '1111', arr: [ { toy: 'Transformers' } , { toy: 'GI Joe' }, { toy: 'He-man' } ]} };
let result1 = xml(example3, {indent: '\t'})

and the result1 was:
'<annotation/>'

Activity

  1. maxmarkus commented on Feb 24, 2020

    @maxmarkus

    Long time ago, but in case someone passes by. You're just using it wrong, written properly it works:

    { annotation: [
      {xxx: '1111'},
      {arr: [ 
        { toy: 'Transformers' },
        { toy: 'GI Joe' },
        { toy: 'He-man' }
      ]}
    ]}
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions