Java XStream - Ignore tag that doesn't exist in XML

前端 未结 6 836
小蘑菇
小蘑菇 2020-12-28 21:26

I currently use a piece of XML like the following


    Frank Smith
    100023412
    1         


        
6条回答
  •  不思量自难忘°
    2020-12-28 21:40

    XStream 1.4.5 supports dealing with tags which are not implemented. Use ignoreUnknownElements for tags which are not implemented yet or has been removed and you are dealing with old xml. You can also specify which particular tag you would like to ignore.

提交回复
热议问题