久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

既然 XMLBeans 已經退役了,用什么來代替它呢?

What to use instead of XMLBeans now that it has been retired?(既然 XMLBeans 已經退役了,用什么來代替它呢?)
本文介紹了既然 XMLBeans 已經退役了,用什么來代替它呢?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我正在開始一個擁有第三方 XSD 的新項目.我的 Java 應用程序需要生成和讀取符合此 XSD 的 XML 消息.過去,我為此使用了 Apache XMLBeans.看起來 XMLBeans 已經退役了.

I am starting a new project where I have third party XSD. My Java application needs to generate, and readm XML messages that conform to this XSD. In the past I have used Apache XMLBeans for this. It looks like XMLBeans has been retired.

現在 XMLBeans 已經退役了,有什么好的替代品呢?我在其他項目中使用過 XStream 但我不記得 XStream 有能力生成 Java來自 XSD 的類,所以我認為對于這個用例來說,它不是 XMLBeans 的好選擇.我在 XSD 中定義了數百種類型,并且真的不希望必須創建數百個 Java 類來手動在 Java 中表示它們.

What is a good replacement for XMLBeans now that it has been retired? I have used XStream on other projects but I don't recall that XStream has the ability to generate Java classes from an XSD so I am thinking that it is not a good choice over XMLBeans for this use case. I have hundreds of types defined in the XSD and would really prefer not to have to create the hundreds of Java classes to represent them in Java by hand.

換句話說,使用 XStream 示例,我有一個 在 XSD 中定義的 Person 類型(和其他 99 個).使用 XMLBeans 我可以生成 Java 類來表示這些對象,但是使用 XStream 我需要手動或使用其他工具來創建 Java 類(例如 Person).在這種情況下我應該使用什么工具?

In other words, using the XStream example, I have a Person type (and 99 others) defined in the XSD. Using XMLBeans I can generate the Java classes to represent these objects, but using XStream I would need to create the Java classes (e.g. Person) by hand or using some other tool. What tool should I use in this case?

推薦答案

你看過 JAXB 嗎?我沒有對其中任何一個做過任何事情,但是在谷歌上搜索XMLBeans 的替代品"會帶來很多對這個包的引用.這是一篇比較它們的文章...

Have you looked at JAXB? I haven't done anything with either of these, but googling for "alternative to XMLBeans" brings up lots of references to this package. Here's an article that compares them...

http://blog.bdoughan.com/2012/01/how-does-jaxb-compare-to-xmlbeans.html

這篇關于既然 XMLBeans 已經退役了,用什么來代替它呢?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How to wrap text around components in a JTextPane?(如何在 JTextPane 中的組件周圍環繞文本?)
MyBatis, how to get the auto generated key of an insert? [MySql](MyBatis,如何獲取插入的自動生成密鑰?[MySql])
Inserting to Oracle Nested Table in Java(在 Java 中插入 Oracle 嵌套表)
Java: How to insert CLOB into oracle database(Java:如何將 CLOB 插入 oracle 數據庫)
Why does Spring-data-jdbc not save my Car object?(為什么 Spring-data-jdbc 不保存我的 Car 對象?)
Use threading to process file chunk by chunk(使用線程逐塊處理文件)
主站蜘蛛池模板: 免费视频一区 | 日本一二区视频 | 色婷婷亚洲一区二区三区 | 国产成人在线视频 | 一区二区三区四区电影 | 九九九久久国产免费 | 精区3d动漫一品二品精区 | 国产精品久久久久一区二区三区 | 国产亚洲一区二区精品 | 97超碰在线免费 | 一区二区三区在线免费观看 | 久久久久久久久久久久91 | 久久一区二 | 久久久免费精品 | 欧美国产日韩一区二区三区 | 亚洲精品乱码久久久久久久久 | 91www在线观看 | 久久亚洲国产 | 韩国av网站在线观看 | 国产精品揄拍一区二区 | 日韩一区二区三区在线观看 | 日日干天天操 | 自拍偷拍中文字幕 | 午夜爽爽爽男女免费观看 | 欧美人人 | 午夜a v电影 | 亚洲精品视频免费观看 | 精品一区久久 | 91欧美激情一区二区三区成人 | 亚洲一区二区三区在线播放 | 亚洲一区中文字幕 | 精品综合在线 | 日韩一区二区三区av | 午夜黄色| 亚洲一区二区在线播放 | 伊人在线| 中国黄色毛片视频 | 久久久久久蜜桃一区二区 | 三级成人在线 | 国产麻豆乱码精品一区二区三区 | 日本成人午夜影院 |