[英]which xml parser is better for parsing Mondrian Schema
Currently our Mondrian Schema values held within *.xml file. 当前,我们的Mondrian Schema值保存在* .xml文件中。 We need to extend some information from this schema and held them in a java Object.
我们需要从该模式扩展一些信息,并将其保存在java对象中。
What is the best/simplest library to use in order to read in values from this file? 为了从该文件中读取值,使用的最佳/最简单的库是什么?
There are a lot of options. 有很多选择。 Mondrian uses Apache VFS to fetch the schemas, so you can implement your own file handle (something like myhandler://mondrian_schemas/my_schema.xml).
Mondrian使用Apache VFS来获取模式,因此您可以实现自己的文件句柄(诸如myhandler://mondrian_schemas/my_schema.xml之类)。
If you're managing your Mondrian instance through the MondrianServer API, you can pass your own implementations of a couple needed SPIs and get very deep control on which definition file is used and what the URLs to these files return. 如果要通过MondrianServer API管理Mondrian实例,则可以传递自己所需的几个SPI的实现,并可以非常深入地控制使用哪个定义文件以及这些文件返回的URL。 A basic example is shown here , in the first part.
在第一部分中显示了一个基本示例。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.