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

ËÄÑÛ¿´ÊÀ½ç XMLÓï·¨


XML (EXtensible Markup Language)
XML is a
cross-platform, software and hardware independent tool for transmitting
information.
Prolog
XML
Declaration
Processing
Instructions
DOCTYPE
Declaration
Elements
Attributes
XML
Comments
CDATA
Sections
Character
and Entity References
XML
settings
XML processors
treat the character sequence Carriage Return-Line Feed (CRLF) like single CR or
LF characters. All are reported as a single LF character. Applications can save
documents using the appropriate line-ending convention.
Elements
XML documents must
contain one and only one root element
XML
Declaration
<?xml
version="1.0" encoding="UTF-8"?>
If used it must be the first line in the document and no other content or white space can precede it
Version
Declaration
The
version declaration is mandatory and the version number 1.0 is the latest
version currently
Encoding
Declaration
It
must contain a value representing an existing character encoding
Processing
Instructions
Processing
instructions do not have to follow much internal syntax, can include markup
characters without escaping them, and can appear anywhere in the document
outside of other markup. Processing instructions must begin with an identifier
called a target which is are case-sensitive.
Style Sheet
Processing Instructions
<?xml-stylesheet
type="type" href="uri" ?>
DOCTYPE
Declaration
<!DOCTYPE
rootElement PUBLIC "PublicIdentifier" "URIreference">
The
PublicIdentifier provides a separate identifier that some XML parsers can use to
reference the DTD in place of the URIreference. This is useful if the parser is
used on a system without a network connection or where that connection would
slow down processing significantly
XML
Comments
<!--
-->
Comments cannot be
nested
CDATA
Sections
<![CDATA[
]]>
Character
references do not work within CDATA sections.
CDATA


Ïà¹ØÎĵµ£º

LINQ to XMLº¯Êý¹¹Ôì·½·¨

±êÇ©£ºÊý¾Ý·ÃÎÊ    LINQ to XML
    LINQ to XML²¢²»´òËãÌæ´ú±ê×¼µÄXML API£¬Ö»ÊDz¹³äÁËÕâЩ±ê×¼XMLÀà      ......

±£´æºÍ¼ÓÔØXMLÎĵµ

±êÇ©£ºÊý¾Ý·ÃÎÊ     ADO.NET
      ±£´æºÍ¼ÓÔØXMLÎĵµ   ......

´¦ÀíXMLƬ¶Î

±êÇ©£ºÊý¾Ý·ÃÎÊ     ADO.NET
    ´¦ÀíXMLƬ¶Î     ´¦ÀíƬ¶Îʱ£¬Ö»ÊÇ°ÑXElement£¨¶ø²»ÊÇXDocument£©µ±×÷¶¥¼¶XML¶ÔÏó¡£
    Ƭ¶ÎµÄΨһÏÞÖÆÊÇ£¬²»ÄÜÌí¼Ó±È½Ï½ÚµãÀàÐÍ£¬ÀýÈ磺XComme ......

ʹÓÃSAX½âÎöXML

SAX£¨Simple API for XML¼ò³ÆSAX£©Ê¼þÊÇÎÞ״̬µÄ£¬Ò²¾ÍÊÇ˵£¬µ±½ÓÊÕµ½×Ö·ûÊý¾ÝµÄʼþºó£¬²¢²»ÖªµÀ¸Ã×Ö·ûÊý¾ÝÊÇÄÄÒ»¸öÔªËصÄ
ÄÚÈÝ¡£Í¬ÑùµØ£¬µ±ÊÕµ½ÔªËØ¿ªÊ¼µÄʼþºó£¬Ò²ÎÞ·¨ÖªµÀ¸ÃÔªËØÊÇ·ñÓи¸ÔªËØ£¬ÊÇ·ñÓÐ×ÓÔªËØ£¬ÕâÊÇ
SAXºÍDOM²»Í¬µÄµØ·½¡£SAX½âÎöÆ÷±¾Éí²¢²»ÌṩԪËصÄÉÏÏÂÎÄÐÅÏ¢£¬ËùÓÐÏà¹ØÐÅÏ¢µÄ¼Ç¼ÐèÒªÎÒÃÇ×Ô
¼º±à³ ......

spring xmlÖеÄpropery µÄnameÊôÐÔÃû×ÔÀ´Ô´

½ñÌìÔÚÔËÓÃspringµÄPropertyPlaceholderConfigurerʱ·¢ÏÖÒ»¸öÓÐÒâ˼µÄÄÚÈÝ£¬µ±ÄãÔÚapplicationContextÖÐÅäÖÃÒ»¸öPropertyPlaceholderConfigurerµÄbeanʱ£¬ÓÐlocationºÍlocationsµÄÊôÐÔ£¬²»Ã÷˼Òâlocation¶ÔÓ¦Ò»¸ö.propertiesÎļþ£¬
locations¶ÔÓ¦¶à¸ö.propertiesÎļþ£¬³å×ÅÏë¿´Ò»ÏÂPropertyPlaceholderConfigurerµÄʵÏÖ»úÖ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ