duanhan4763
2016-01-27 17:23
浏览 84

使用Unmarshal在Go中获取XML名称空间前缀

I would like to know if it is possible to get the XML namespace prefix using the Unmarshal method in encoding/xml.

For example, I have:

<application xmlns="http://wadl.dev.java.net/2009/02" xmlns:xs="http://www.w3.org/2001/XMLSchema">
</application>

I would like to know how to retrieve the xs defining the prefix for XMLSchema, without having to use the Token method.

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

2条回答 默认 最新

相关推荐 更多相似问题