³¬¼¶´ó±¿ÀÇÖйúÏóÆå(js+xml)
<html xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<STYLE>
v\:* { Behavior: url(#default#VML) }
body {
background-color:DarkGoldenrod;
margin-left: 10px;
margin-top: 10px;
}
</STYLE>
<title>³¬¼¶´ó±¿ÀÇÏóÆå</title>
</head>
<body onselectstart="document.selection.clear();" onclick="target();" oncontextmenu="selectNull();return(false);">
<v:group style="top:0;left:0;width:400px;height:450px;position:relative;" CoordOrig="0,0" CoordSize="400,450">
<v:Rect id=qiPan style="position:relative;width:460;height:510px;top=-30;left=-30;Z-INDEX:1;" fillColor="#f0e68c" StrokeWeight="2">
<v:TextBox inset="80pt,180pt,1pt,1pt" style="Z-INDEX:2;font-size=24;font-weight:bold;position:relative;letter-spacing: 2em;color='#CC9933';FILTER: glow(color=#ffffff,strength=1) alpha(opacity=90);cursor:default;"> ³þºÓºº½ç</v:TextBox >
<v:shadow on="Ture" type="single" color="#8b4513" offset="3px,3px"/>
</v:Rect>
<v:line from="0,0" to="400,0" style="Z-INDEX:3;FILTER: " strokeweight="1pt" > </v:line>
<v:line from="0,50" to="400,50" style="Z-INDEX:3;FILTER: " strokeweight="1pt" > </v:line>
<v:line from="0,100" to="400,100" style="Z-INDEX:3;FILTER: " strokeweight="1pt" > </v:line>
<v:line from="0,150" to="40
Ïà¹ØÎĵµ£º
public static IList<News> GetAllNews()
{
XmlDocument xdoc = new XmlDocument();
xdoc.Load("Äã¶ÁÈ¡µÄµØÖ·£ºÀýÈç ......
¹¤¾ß:myeclipse 6.5
jsonÖÐÎĹٷ½£ºhttp://www.json.org/json-zh.html
н¨ÏîÄ¿webs£¬ÔÚWebRootÏÂн¨Ä¿Â¼json
xmlµÄ½âÎö·½Ê½:
------------------------------------------------------------------
1.н¨NewFile.xml
<?xml version="1.0" encoding="UTF-8"?>
<userinfo>
  ......
×î½üÔÚ×öNetConfÏà¹Ø¿ª·¢¹¤×÷£¬ÆäÖкÜÖØÒªµÄÒ»¿éÊÇXML½âÎö£¬ÏîÄ¿Ò²ÐèÒªÖ§³ÖSchema£¬Òò´ËÇ°¶Îʱ¼äÕûÀíÁËSchemaµÄÁ½²¿·Ö±ê×¼£¬Ö»²»¹ýÕûÀíÎĵµÊÇÎÞ·¨´ø³öÀ´µÄ£¬ËùÒÔ¾ÍÔÚ´Ë°ÑSchemaÏà¹ØµÄÄÚÈݼòµ¥½éÉÜÆä±ê×¼Ö®ºó£¬ÒÔÈçºÎÓ¦Óõķ½Ê½¼Ç¼ÏÂÀ´£¬ÒÔ¹©ÒÔºóʹÓÃʱ²Î¿¼¡£ÔÚºóÐøµÄ²¿·Ö£¬ÎÒ» ......
--A. ´Ó´æ´¢ÔÚ·ÇÀàÐÍ»¯µÄ xml ±äÁ¿ÖеÄÎĵµÖÐɾ³ý½Úµã
DECLARE @myDoc xml
SET @myDoc = '<?Instructions for=TheWC.exe ?>
<Root>
<!-- instructions for the 1st work center -->
<Location LocationID="10" LaborHours="1.1" MachineHours=".2" >
Some text 1
<st ......
Ò»°ãÐÂÊÖͨ³£Ö»ÊÇʹÓÃÀàËƵÄXerces,
TinyXMLÖ®ÀàµÄXML½âÎöxml£¬ÕâÖÖ·½Ê½Êµ¼ÊÉϺÜÀË·Ñʱ¼ä£¬×Ô¼º±àдºÜ¶à´úÂëÒ²ÈÝÒ׳ö´í¡£ÒòΪ£¬ËûÃǾ³£ÒªÐ´Ò»¸öXML¶ÔÏóEntityµÄÀ࣬²¢¸½×ÅÒ»¶Ñ¶ÔÏó½âÎöµÄcode¡£¹¤×÷Á¿±È½Ï´ó¡£Ê¹ÓÃXML
Schema¹¤¾ß£¬XSDÉè¼Æ¹¤¾ß£¬È»ºóͨ¹ý¹¤¾ßÉú³ÉEntityClassºÍPaser
class¡£ÎÒ²»ÖªµÀÕâÖÖ¼¼ÊõÈ·ÇеÄÆðÔ ......