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

DataSet ¶ÁÈ¡xmlÎļþ

 DataSet ds = new DataSet();
ds.ReadXml(Server.MapPath(NetShop.Config.DbConfigs.GetSitePath + "images/flashdata/flash.config"));
DataRow[] drs = ds.Tables[0].Select("", "[SortOrder] ASC");
//·µ»ØµÄÊǸöDataRow[]£º
//DataRow[] dr=ds.Tables("FindFeatureOutputTable").Select("id>100")
//object[] aArray = new object[intColumns];
//dr.ItemArray.CopyTo(aArray, 0);
//dt.Rows.Add(aArray);
//È»ºó°ó¶¨dt.×¢Ò⣬ÉÏÃæµÄintColumnsÓ¦¸ÃΪdtµÄColumnµÄCount.
//DataView DV = ds.Tables("FindFeatureOutputTable").DefaultView;
//DV.RowFilter = "id>100";
//Dg1.DataSource = DV;
string sitewebpath = NetShop.Config.DbConfigs.GetSitePath;
for (int i = 0; i < drs.Length; i++)
{
if (i > 3)
{
break;
}
else
{
piscs += sitewebpath + drs[i]["Path"].ToString() + "|";
links += drs[i]["Link"].ToString() + "|";
}
}
piscs = piscs.Trim('|');
links = links.Trim('|');
<?xml version="1.0" standalone="yes"?>
<FlashPhoto>
<Photo>
<ID>61f6d102-f95e-4ebe-a237-6c689797da07</ID>
<Path>images/flashdata/699362509650.jpg</Path>
<Link>http://www.xxxx.com/</Link>
<Desc>ÐýתľÂí ת³öÐÒ¸£µÄζµÀ</Desc>
<SortOrder>1</SortOrder>
</Photo>
<Photo>
<ID>d9f7240d-8d1d-40d2-8df5-0c13c8eeb58a</ID>
<Path>images/flashdata/700342962709.jpg</Path>
<Link>http://xxxx.com/2009/</Link>
<Desc>ÏÞʱÇÀ¹ºÌØ»ÝÌìÏÂÓÐÇéÈË&l


Ïà¹ØÎĵµ£º

JavaÀûÓÃxml½«´óÅúÁ¿Êý¾Ýµ¼³öµ½excelµÄÒ»¸ö·½·¨

±ÊÕßÔÚJava¿ª·¢Öг£³£»áÓöµ½½«Êý¾Ý¿âÊý¾Ýµ¼³öµ½ExcelµÄÒªÇ󣬱ÈÈçÔÚÎÒµÄÒ»¸öÏîÄ¿ÖУ¬¿Í»§ÒªÇóËùÓвéѯ½á¹û¶¼¿ÉÒÔµ¼³öµ½Excel£¬¶ÔÓÚÊý¾ÝÁ¿²»´óµÄ£¨¼¸ÍòÌõ£©£¬Õâ±È½ÏÈÝÒ×ʵÏÖ£¬µ«¶ÔÓÚÊý¾ÝÁ¿±È½Ï´óµÄ£¨¼¸Ê®Íò¼°ÒÔÉÏ£¬¾ßÌåÒª¿´µ¼³öÄÚÈݵÄ×ֶθöÊýºÍ³¤¶Ì£©£¬ÔòÔÚÊý¾Ý¿â²éѯºÍÉú³ÉexcelÎļþÉ϶¼»áÓÐÂé·³¡£
ÒÔÎÒÔÚʵ¼ÊÏîÄ¿ÖеÄÒ»¸ ......

XML, XSLT, XSD, XPATH, XSL

Xml, xslt, xsd, xpathÃèÊöÒ»ÏÂ
XML: Extensible Markup LanguageÀ©Õ¹±ê¼ÇÓïÑÔ£¬ÓÃÀ´´¦Àí½á¹¹»¯Îĵµ¡£
XSLT: XSL Transformations¡£ÓÃÀ´½«Ò»ÖÖXMLת»»³ÉÁíÍâÒ»ÖÖXMLÎĵµ¡£Ò²¿ÉÒÔ½«XMLת»»³ÉXHTML»òÕßHTMLÔÚä¯ÀÀÆ÷ÖÐÏÔʾ¡£
XSD: XML Schemas Definition¡£ÓÃÀ´¶¨ÒåXMLÎĵµµÄ½á¹¹¡£XML Schema ÊÇDTD(Document Type Definiti ......

Ìí¼ÓÍ·ÎļþÖеÄxml,script,cssµÈÄÚÈÝ·½·¨

function   $import(path,type,title,idname){  
          var   s,i;  
          if(type=="js"){  
         &nb ......

JavaScript ¶ÁÈ¡ XMLÎļþ

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<mce:style type="text/css"><!--

table,tr,td {
background-position: center;
border-width: 1px;
border-style: solid;
border-coll ......

3.3.1 XML¸ñʽµÄÔªÊý¾Ý


ÈκÎORMµÄ½â¾ö·½°¸¶¼Ó¦¸ÃÌṩһÖÖÒ׶ÁµÄ¡¢ÈÝÒױ༭µÄÓ³ÉäÎļþ¸ñʽ£¬¶ø²»½ö½öÌṩһ¸öGUIͼÐι¤¾ß¡£µ±ÏÂÁ÷ÐеĶÔÏó/¹ØϵԪÊý¾Ý¸ñʽ¶¼Ö§³ÖXML¡£Ê¹ÓÃXML¸ñʽµÄÎļþ¿ÉÒÔÌṩÈçϺô¦£ºÊ×ÏÈËüÊÇÇáÁ¿¼¶µÄ£¬ÌṩºÜºÃµÄÒ׶ÁÐÔ£¬Äܹ»½øÐа汾¿ØÖÆ£¬¿ÉÒÔÔÚ²¿Êð½×¶Î¶¨ÖÆ¡£
µ«ÊÇXML¸ñʽÎļþÕæµÄÊÇ×îºÃµÄÑ¡ÔñÂð£¿JavaÉçÍÅÖоͷ´¶ÔXML ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ