xml2lua icon indicating copy to clipboard operation
xml2lua copied to clipboard

Duplicated tags support?

Open linrongbin16 opened this issue 1 year ago • 1 comments
trafficstars

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>.

linrongbin16 avatar Jun 27 '24 06:06 linrongbin16