独立值不会出现在由moxy - jaxb生成的xml中 [英] standalone value does not appear in xml generated by moxy - jaxb

查看:99
本文介绍了独立值不会出现在由moxy - jaxb生成的xml中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用jxyb的moxy实现生成的xml文件。但是,独立值不会出现在xml文档中。

I have a xml file generated using moxy implementation of jaxb. However standalone value does not appear in the xml document.

推荐答案

注意:我是< a href =http://www.eclipse.org/eclipselink/moxy.php =nofollow> EclipseLink JAXB(MOXy) 领导和 JAXB(JSR-222) 专家组。

Note: I'm the EclipseLink JAXB (MOXy) lead and a member of the JAXB (JSR-222) expert group.

独立属性很少使用,仅在您使用DTD时才相关。由于JAXB(JSR-222)主要与XML Schema一起使用,因此不适用。我们选择不在JAXB(JSR-222)的MOXy实现中输出该属性。

The standalone attribute is seldom used, and is only relevant if you are using a DTD. Since JAXB (JSR-222) is primarily used with XML Schema it doesn't apply. We chose not to output that attribute in the MOXy implemenation of JAXB (JSR-222).

其他XML技术也选择不支持独立属性。例如,我不知道使用StAX解析器输出独立值的方法。

Other XML technologies chose not to support the standalone attribute as well. For example I am not aware of a way to output a standalone value using a StAX parser.

更多信息

  • http://www.xmlplease.com/xml/xmlquotations/standalone

这篇关于独立值不会出现在由moxy - jaxb生成的xml中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆