Skip to content

Duplicated tags support? #100

@linrongbin16

Description

@linrongbin16

Hi, thanks to your work.

When I have such XML payload:

      <dict>
        <key>settings</key>
        <dict>
          <key>background</key>
          <string>#262626</string>
          <key>foreground</key>
          <string>#bcbcbc</string>
          <key>invisibles</key>
          <string>#585858</string>
          <key>lineHighlight</key>
          <string>#262626</string>
          <key>lineDiffAdded</key>
          <string>#87afff</string>
          <key>lineDiffModified</key>
          <string>#dfdfdf</string>
          <key>lineDiffDeleted</key>
          <string>#ffdf87</string>
        </dict>
      </dict>

I wonder how should I parse this XML payload to lua table, and convert the lua table back to XML payload?

Because there're multiple <key> and <string> tags in the <dict>.

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