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

XMLSchema 的解決方法不支持 maxOccurs 大于 5000

Workaround for XMLSchema not supporting maxOccurs larger than 5000(XMLSchema 的解決方法不支持 maxOccurs 大于 5000)
本文介紹了XMLSchema 的解決方法不支持 maxOccurs 大于 5000的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我的問題是解析具有大于 5000 的 maxOccurs 元素(但不是 unbounded)的 XSD 架構.

My problem is with parsing an XSD Schema that has elements with maxOccurs larger than 5000 (but not unbounded).

這實際上是 Xerces(我正在使用,版本 2.9.1)或 JAXP 中的一個已知問題,如下所述:http://bugs.sun.com/view_bug.do;jsessionid=85335466c2c1fc52f0245d20b2e?bug_id=4990915

This is actually a know issue in either Xerces (which I'm using, version 2.9.1) or JAXP, as described here: http://bugs.sun.com/view_bug.do;jsessionid=85335466c2c1fc52f0245d20b2e?bug_id=4990915

我已經知道,如果我將 XSD 中的 maxOccurs 數字從大于 5000 的數字更改為 unbounded 一切正常.可悲的是,這不是一個選項,就我而言(我不能干預 XSD 文件).

I already know that if I changed the maxOccurs numbers in my XSD from numbers larger than 5000 to unbounded all works well. Sadly, this is not an option in my case (I cannot meddle with the XSD file).

我的問題是:

  • 有人知道 Xerces 中針對此問題的其他解決方法嗎?或者
  • 有人可以推薦另一個沒有此限制的 XML 解析器嗎?

謝謝!

推薦答案

我找到了一個不需要更改解析器的解決方案.

I have found a solution that doesn't require changing the parser.

有一個 FEATURE_SECURE_PROCESSING 功能 將 maxOccurs 限制為 5000(以及其他幾個).

There is a FEATURE_SECURE_PROCESSING feature which puts that 5000 limitation on maxOccurs (along with several others).

這里是描述限制的文檔:http://docs.oracle.com/javase/7/docs/technotes/guides/xml/jaxp/JAXP-Compatibility_160.html#JAXP_security

And here is the document describing the limitations: http://docs.oracle.com/javase/7/docs/technotes/guides/xml/jaxp/JAXP-Compatibility_160.html#JAXP_security

這篇關于XMLSchema 的解決方法不支持 maxOccurs 大于 5000的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

相關文檔推薦

Upload progress listener not fired (Google drive API)(上傳進度偵聽器未觸發(Google 驅動器 API))
Save file in specific folder with Google Drive SDK(使用 Google Drive SDK 將文件保存在特定文件夾中)
Google Drive Android API - Invalid DriveId and Null ResourceId(Google Drive Android API - 無效的 DriveId 和 Null ResourceId)
Google drive api services account view uploaded files to google drive using java(谷歌驅動api服務賬戶查看上傳文件到谷歌驅動使用java)
Google Drive service account returns 403 usageLimits(Google Drive 服務帳號返回 403 usageLimits)
com.google.api.client.json.jackson.JacksonFactory; missing in Google Drive example(com.google.api.client.json.jackson.JacksonFactory;Google Drive 示例中缺少)
主站蜘蛛池模板: 人人干视频在线 | 日韩免费视频一区二区 | 91精品国产91综合久久蜜臀 | 欧洲尺码日本国产精品 | 中文字幕在线免费观看 | 国产乱码精品一区二区三区忘忧草 | 黄色日本片 | 日韩视频福利 | 奇米超碰 | 久久国产精品一区二区三区 | 精品一区二区三区四区在线 | 国产最新精品视频 | 国产日韩一区二区三区 | 精品一区二区免费视频 | 亚洲欧美日韩中文在线 | 亚洲精品久久久久久一区二区 | 九九激情视频 | 日韩在线免费 | 欧美一级全黄 | 亚洲一级淫片 | 日韩1区 | 久久精品在线 | 国产91精品在线 | 久久精品99 | 日韩三片 | 欧美一二三四成人免费视频 | 福利视频网 | 成人在线欧美 | 日韩av在线免费 | 99精品视频在线观看免费播放 | 精品视频一区二区 | 亚洲日韩中文字幕一区 | 国产成人综合久久 | 亚洲成人一级片 | 国产精品日本一区二区在线播放 | 国产精品亚洲一区二区三区在线 | 日韩一二三区视频 | 粉嫩国产精品一区二区在线观看 | 久久久久久久一区 | 亚洲精品久久久久久久久久久久久 | 又黑又粗又长的欧美一区 |