0

I'm working on a system that stores data in XML files. The data in the files can be converted into a generic DOM but not without some processing. I have been tasking with looking into how to do the web access story for this system. (FWIW, the existing code base is in .NET)

The system can be thought of as an XML in XML database for handling generally static but end-user-time defined XML schemes. I'm not sure what the model is exactly as that's another guy's job but the bit I'm working with will be seeing serializable DOM objects of some kind.

The intended model is that the end user will write a web front end that accesses data from our system. The things that jump out at me as options are:

  • Build a SOAP (or equivalent) service that can present the processed XML and let the web server run from that with XSL or whatever.
  • Same as the SOAP solution but with server side XSL for security and rendering so the web server needs only drop in the text.
  • Build an assembly to so a web server can process files in process.
  • ???

We would like the system to be simple and cross platform (something that can be uses from a presentation layer written using LAMP, WAMP, RoR, ASP, etc).

4

1 回答 1

0

It sounds to me like you're either not asking the right questions, or you're using the wrong terminology (or both.) But maybe that's just me.

"generic DOM" -- any XML file should be convertable into a DOM; if it can't be, it's not well-formed XML. The DOM is simply an in-memory representation of the XML. (Commonly, it's used to mean the DOM inside of a Web browser; but DOM models can be and are created on the server as well.)

Cross-platform -- I don't know of any way to write presentation code that can be plugged into LAMP, WAMP, RoR, ASP, etc. Maybe this is possible, but it seems unlikely to me.

My best guess about what you need is that it's pretty simple: Associate the XML file with a CSS Style Sheet, and let the Web browser format the XML for display to the user.

If that's not the answer you're looking for, maybe you could start with a sample of the XML that you need to display, and a prototype that shows how you'd like it to be displayed?

于 2009-05-08T20:13:58.193 回答