如何使用JQUERY解析XML文件并以HTML格式可视化? [英] How to parse a XML file using JQUERY and visualize it in HTML format?

查看:354
本文介绍了如何使用JQUERY解析XML文件并以HTML格式可视化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个java web应用程序其中需求  < span class =code-keyword> 上传XML  file   特定格式< span class =code-keyword>和 然后解析它 代表它 HTML UI中的class =code-keyword>。  XML标记的UI表示应该是可编辑的。这可以使用 JQUERY吗? 

我尝试使用 jParse但找到整个东西(除了在我现有的项目中使用.js 文件

请帮助!

解决方案

在服务器端代码中使用XSLT而不是在JQuery中解析。

http://www.javaworld.com/article/2076171/java-se/xml-document-processing-in-java-using-xpath-and-xslt.html



这似乎是java中的一个很好的例子


I have a java web application where the requirement is to upload XML file of a specific format and then parse it to represent it in an HTML UI. The UI representation of the XML tags should be editable. Can this be done using JQUERY?

I tried using jParse but did not find the entire stuff(other than the .js file) to be used within my existing project.

Please help!

解决方案

Use XSLT in server side code instead of parsing in JQuery.


http://www.javaworld.com/article/2076171/java-se/xml-document-processing-in-java-using-xpath-and-xslt.html

This seems to be an good example in java


这篇关于如何使用JQUERY解析XML文件并以HTML格式可视化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆