Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

XSLTת»»XMLʵÀý

ת×Ô½­±ß¹ÂÄñ: http://blog.csdn.net/jbgh608/archive/2007/08/31/1767414.aspx
W3school µÄxsl½Ì³Ì£º http://www.w3school.com.cn/xsl/index.asp
²úÆ·¼¸ÄêǰʹÓÃASP£¬ºóÀ´Éý¼¶µ½.Net 1.1£¬ÔÙÉý¼¶µ½2.0£¬Ò»Ö±¶¼ÓÐÓÃXSLTת»»XMLÉú³ÉÍøÒ³µÄ·½Ê½£¬ÉÔ΢ÕûÀíÏ¡£
    XML file:
<?xml version="1.0" encoding="utf-8" ?>
<ric>
  <catalog>
    <book price="75">
      <author>Kalen Delaney</author>
      <name>Inside SQL Server 2000</name>
    </book>
    <book price="200">
      <author>Ken Henderson</author>
      <name>The Guru's Guide to SQL Server Architecture</name>
    </book>
  </catalog>
</ric>
    XSLT file:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8"/>
<xsl:template match="/">
    <html>
    <body>
      <table cellpadding="0" cellspacing="0" border="1" style="border-collapse:collapse;font-size:14px;">
        <tr>
          <th>Book Name</th>
          <th>Author</th>
          <th>Price</th>
        </tr>
        &l


Ïà¹ØÎĵµ£º

¶ÁÈ¡xmlʱ EntityName ʱ³ö´í

public static Hashtable xml_unserialize(string strXml)
        {
//¼ÓÉÏÏÂÃæÕâ¾ä¾ÍºÃÁË
strXml = strXml.Replace("&", "&amp;");
Hashtable ht = new Hashtable();
XmlDocument XMLDom = new XmlDocument();
......

ʵÀýÆÊÎöxmlÓ¦Óã¨1£©

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
 //µ¼ÈëʹÓÃxmlÓ¦ÓÃËùÐèµ ......

VC¶ÔÓÚXMLµÄ½âÎöÒÔ¼°²Ù×÷

XMLµÄ²éÕÒ
#include <stdio.h>
#include <iostream>
#import <msxml4.dll>
#include <string>
using namespace std;
void Travel(MSXML2::IXMLDOMNodePtr pDOMNode)
{
 if (pDOMNode->GetnodeTypeString()==(_bstr_t)"element") // »ñÈ¡½ÚµãÀàÐÍ
 {
  printf("%s ......

Flex¶ÁÈ¡ÍⲿXMLÖÐÎÄÂÒÂë½â¾ö°ì·¨

ÓÃURLLoader¼ÓÔØXML£¬È»ºó½«dataת»¯ÎªByteArray
ÓÃbyteArray.readMultiByte(bytes.length,"utf-8")
È»ºó½«×ª»¯ºóµÄ×Ö·û´®ÔÙÇ¿ÖÆת»¯ÎªXML
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.Binary;
var urlRequest:URLRequest = new URLRequest(source);
loader.addEventListener( ......

Xml¶Áд

<?xml version="1.0" encoding="utf-8"?> 
<userdata createuser="false">
  <dataconnection>
    <server>xml test</server>
    <uid>sa</uid>
    <pwd>sa</pwd>
  </dataconnection> ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ