上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 46 下一页
  2016年5月20日
摘要: As we have seen, an object of the class JAXBContext must be constructed as a starting point for other operations. One way is to create a context from 阅读全文
posted @ 2016-05-20 10:35 huey2672 阅读(380) 评论(0) 推荐(0) 编辑
  2016年5月19日
摘要: 如果元素带有命名空间,那么处理方式与 JAXB - Hello World 会略有不同。 1. XML Schema: 2. 编译 schema 生成 Java 类: 3. 修改生成的 GreetingListType.java 文件,添加 @XmlRootElement,指定根元素的名称和命名空间 阅读全文
posted @ 2016-05-19 21:41 huey2672 阅读(328) 评论(0) 推荐(0) 编辑
  2016年5月18日
摘要: Validation A considerable part of the XML Schema language deals with facets, enabling the programmer to restrict the basic datatypes. We have seen tha 阅读全文
posted @ 2016-05-18 21:19 huey2672 阅读(356) 评论(0) 推荐(0) 编辑
摘要: A simple approach for unmarshalling an XML document consists of the creation of a JAXB context and the call to unmarshal the document. A JAXBContext o 阅读全文
posted @ 2016-05-18 19:41 huey2672 阅读(235) 评论(0) 推荐(0) 编辑
摘要: Although object orientation isn't a key feature of XML or the XML Schema language, it's still possible to apply the fundamental OO paradigm when desig 阅读全文
posted @ 2016-05-18 16:26 huey2672 阅读(242) 评论(0) 推荐(0) 编辑
摘要: Content: A Value The content of an XML element may be some value, or one or more subordinate elements, or even a combination of both. Let's look at an 阅读全文
posted @ 2016-05-18 15:09 huey2672 阅读(365) 评论(0) 推荐(0) 编辑
摘要: Types for XML elements are constructed using xsd:complexType, even if they do not have content. The snippet below defines a simple element with two at 阅读全文
posted @ 2016-05-18 14:31 huey2672 阅读(127) 评论(0) 推荐(0) 编辑
摘要: If you want a data type that enumerates discrete values you should use a restriction of the schema type xsd:string, enumerating all the values as you 阅读全文
posted @ 2016-05-18 14:16 huey2672 阅读(156) 评论(0) 推荐(0) 编辑
摘要: Data that has no "natural" representation with printable characters must, for inclusion in an XML file, still be represented in printable characters. 阅读全文
posted @ 2016-05-18 13:54 huey2672 阅读(182) 评论(0) 推荐(0) 编辑
摘要: JAXB binds all three of the schema types xsd:date, xsd:time and xsd:dateTime to XMLGregorianCalendar. This class is in the package javax.xml.datatype. 阅读全文
posted @ 2016-05-18 13:16 huey2672 阅读(365) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 46 下一页