0

Java:How to parse XML file like this,the really confuses me

<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
    <string name="dialog_presetlist_title">Preset Lists</string>
    <string name="preset_select_name">
          Select "<xliff:g id="preset_name">%1$s</xliff:g>"
    </string>
    <string name="transmit_msg_string">Transmitting at:</string>
</resources>   

also how to wirte the tag to a XML file

Cœur
  • 37,241
  • 25
  • 195
  • 267
chadm
  • 1
  • 1

1 Answers1

0

This xml may look strange but it is a quite legal, well-formed xml. You can parse it with any xml parser like any other xml.

Evgeniy Dorofeev
  • 133,369
  • 30
  • 199
  • 275