PKM2Êý¾Ýµ¼³öµÄxmlÏÔʾÓõÄXSL
PKM2Õâ¸ö¸öÈË֪ʶ¹ÜÀíÈí¼þÏàÐźܶàÈËÓùý,¿ÉÒÔ°ÑÊý¾Ýµ¼³öΪchmµç×ÓÊé,µ«ÊDz»ÖªµÀΪʲôµ¹³öÀ´µÄchm²»Äܰ´ÕÕ±êÌâÅÅÐò,ËùÒÔÎҾ͵¼³öΪxml¸ñʽ,Ū¸öxslÀ´ÏÔʾËü.
<?xml version="1.0" encoding="gb2312"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" version="4.0" indent="yes"/>
<xsl:template match="/">
<html>
<head>
<TITLE>hh</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<meta name="Author" content="(webuc.net)" />
<meta name="Description" content="" />
<mce:style><!--
body{margin:0px;color:black;font-size:9pt;}
div{background-color:#fff;border:1px solid #4682B4;}
p{indent:2em;margin-left:15px;}
ul{}
li{margin-left:10px;}
a:link {color: #2c4c78; text-decoration: none}
a:visited {color: #2c4c78; text-decoration: none}
a:hover {color: #8B0C01; text-decoration: underline}
a:active {color: red; text-decoration: none}
#left_nav{margin:10px;float:left;clear:left;width:250px;height:600px;overflow:scroll;}
#right_content{margin:10px;float:left;clear:right;width:600px;height:600px;overflow:scroll;}
--></mce:style><style mce_bogus="1">body{margin:0px;color:black;font-size:9pt;}
div{background-color:#fff;border:1px solid #4682B4;}
p{indent:2em;margin-left:15px;}
ul{}
li{margin-left:10px;}
a:link {color: #2c4c78; text-decoration: none}
a:visited {color: #2c4c78; text-decoration: none}
a:hover {color: #8B0C01; text-decoration: underline}
a:active {color: red; text-decoration: none}
#left_nav{margin:10px;float:left;clear:left;width:250px;height:600px;overflow:scroll;}
#right_content{margin:10px;float:left;clear:right;width:600px;height:600px;overflow:scroll;}</style>
</head>
<body>
<div id="main">
<xsl:apply-templates select="XMLDB"/>
</div>
</body>
</html>
</xsl:template>
<xsl:template match="XMLDB"&g
Ïà¹ØÎĵµ£º
<script>
var flags ;
if(window.XMLHttpRequest) {
XMLHttpReq = new XMLHttpRequest(); //firefoxÏÂÖ´ÐдËÓï¾ä
}
else if(window.ActiveXObject) {
try{
XMLHttpReq = new Acti ......
ºÅ³ÆxmlhelperµÄÒ»¸öÀà
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Xml;
namespace WebApplication2
{
/// <summary>
/// XMLHelper XMLÎĵµ²Ù×÷¹ÜÀíÆ÷
/// </summary>
public class XMLHelper
{
public X ......
ASP.NETÖ®XML£ºÒª²åÈëµÄ½Úµã³ö×Ô²»Í¬µÄÎĵµÉÏÏÂÎÄ
Òª²åÈëµÄ½Úµã³ö×Ô²»Í¬µÄÎĵµÉÏÏÂÎÄ
ʱ¼ä£º2009-06-12 08:15:11
Òì³£ÏêϸÐÅÏ¢: System.ArgumentException: Òª²åÈëµÄ½Úµã³ö×Ô²»Í¬µÄÎĵµÉÏÏÂÎÄ¡£
²úÉú×´¿ö£ºÏÖÔÚÓÐÁ½¸öxmlÎļþ£¬ÎÒÏë°ÑÕâÁ½¸öxmlºÏ²¢£¬ÔÚ¸øxml½Úµã²åÈëÒ»¸ö×Ó½Úµãʱ³öÏÖÁËÕâÑùµÄ´ ......
XML ¼Ü¹¹½éÉÜ:
XML ¼Ü¹¹ÊÇÓÃÓÚ¶¨ÒåºÍÑéÖ¤ XML Êý¾ÝµÄÄÚÈݺͽṹµÄÎĵµ£¬¾ÍÏñÊý¾Ý¿â¼Ü¹¹¶¨ÒåºÍÑéÖ¤×é³ÉÊý¾Ý¿âµÄ±í¡¢ÁкÍÊý¾ÝÀàÐÍÒ»Ñù¡£
XML ¼Ü¹¹Í¨¹ý XML ¼Ü¹¹¶¨Òå (XSD) ÓïÑÔ¶¨ÒåºÍÃèÊöijЩ XML Êý¾ÝÀàÐÍ¡£XML ¼Ü¹¹ÔªËØ£¨ÔªËØ¡¢ÊôÐÔ¡¢ÀàÐͺÍ×飩ÓÃÓÚ¶¨ÒåijЩ XML Êý¾ÝÀàÐ͵ÄÓÐЧ½á¹¹¡¢ÓÐЧÊý¾ÝÄÚÈݺ͹ØÏµ¡£XML ¼Ü¹¹»¹¿ÉΪ ......
package com.kiloway.trace.utils;
import java.lang.reflect.Field;
/**
* @author Zhang Qi
* @Create Time 2010/01/09
* */
public class ObjectToXML {
public String toString(Object object) throws Exception {
StringBuilder sb = new StringBuilder();
//µÃµ½ÀàµÄÃû³Æ
String classname = obj ......