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

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

½ñÌìÔÚÔËÓÃspringµÄPropertyPlaceholderConfigurerʱ·¢ÏÖÒ»¸öÓÐÒâ˼µÄÄÚÈÝ£¬µ±ÄãÔÚapplicationContextÖÐÅäÖÃÒ»¸öPropertyPlaceholderConfigurerµÄbeanʱ£¬ÓÐlocationºÍlocationsµÄÊôÐÔ£¬²»Ã÷˼Òâlocation¶ÔÓ¦Ò»¸ö.propertiesÎļþ£¬
locations¶ÔÓ¦¶à¸ö.propertiesÎļþ£¬³å×ÅÏë¿´Ò»ÏÂPropertyPlaceholderConfigurerµÄʵÏÖ»úÖÆ£¬ÓÚÊDz鿴ÁËspringµÄÔ´Â룬·¢ÏÖÔÚPropertyPlaceholderConfigurerÖв¢Ã»ÓÐlocationºÍlocationsµÄÊôÐÔ£¬ÓÚÊÇһ·ÏòÉÏÔÚ¸¸ÀàPropertiesLoaderSupportÖÐÕÒµ½ÁËlocationsµÄÊôÐÔ£¬µ«ÊÇûÓÐlocationÊôÐÔ£¬Ææ¹Ö£¿µ«ÔÚPropertiesLoaderSupportÖÐÈ´ÓÐsetLocationºÍsetLocationsÁ½¸ö·½·¨£º
/**
  * Set a location of a properties file to be loaded.
  * <p>Can point to a classic properties file or to an XML file
  * that follows JDK 1.5's properties XML format.
  */
 public void setLocation(Resource location) {
  this.locations = new Resource[] {location};
 }
 /**
  * Set locations of properties files to be loaded.
  * <p>Can point to classic properties files or to XML files
  * that follow JDK 1.5's properties XML format.
  */
 public void setLocations(Resource[] locations) {
  this.locations = locations;
 }
ÕâÑù¿´À´applicationContext.xmlÖеÄbeanµÄpropertyµÄnameÊôÐÔµÄÖµ£¬²¢²»ÊǺͶÔÓ¦ÀàÀàÖеÄÊôÐÔÄÚÈÝÊÇÒ»ÖµÄ


Ïà¹ØÎĵµ£º

javascript¿çä¯ÀÀÆ÷´´½¨XML¶ÔÏó


var
 
xmlDoc
 
=
 
null
;
function
 
parseXML
(
xmlUrl
)
{
¡¡¡¡try
 
{
¡¡¡¡¡¡¡¡//IE
¡¡¡¡¡¡¡¡xmlDoc
 
=
 
new
 
ActiveXObject
(
"Microsoft.XMLDOM"
);
¡¡¡¡¡¡¡¡xmlDoc
.
async
 
=
 
false
;
¡¡¡¡¡¡¡¡xmlDoc ......

ʲôÊÇxml processing instruction(PI)£¿

from:
http://zhidao.baidu.com/question/67891842.html?si=1
ÏÂÃæµÄÒ»ÐоÍÊÇÔÚµÚ¶þ±¾ÊéµÄ¶¨Òå֮ǰµÄ£º
<?page render multiple authors ?>
ËäÈ»Ëü¿´ÉÏÈ¥ºÜÏñXMLÐòÑÔ£¬µ«Êµ¼ÊÉÏÊÇÒ»ÖÖ³ÆΪ´¦ÀíÖ¸Áprocessing instruction£©µÄ²»Í¬ÀàÐ͵ÄÓï·¨¡£´¦ÀíÖ¸ÁÒÔϼò³ÆPI£©µÄÄ¿µÄÊÇΪÁ˸ø´¦ÀíÒ³ÃæµÄ³ÌÐò£¨ÀýÈçXML½âÎöÆ ......

XML ¸ñʽ

ÏÖÔÚÎÒÃÇÔÝÇÒʹÓÓ¼Çʱ¾”À´´´½¨ÎÒÃǵÄXMLÎļþ°É¡£ÏÈ¿´Ò»¸öXMLÎļþ£º 
¡¡¡¡Àý1 
¡¡¡¡¡´?xml version="1.0" encoding="gb2312" ?¡µ 
¡¡¡¡¡´²Î¿¼×ÊÁÏ¡µ 
¡¡¡¡ ¡´Êé¼®¡µ 
¡¡¡¡ ¡´Ãû³Æ¡µXMLÈëÞ«½â¡´/Ãû³Æ¡µ 
¡¡¡¡ ¡´×÷Õß¡µÕÅÈý¡´/×÷Õß¡ ......

.NET XML ´®Ðл¯½²×ù

1,dz´®Ðл¯£ºÖ»´®Ðл¯ÀàµÄ¹«¹²×ֶκÍÊôÐÔ
    ¹«¹²ÊôÐÔ±ØÐëÊǿɶÁÇÒ¿ÉдµÄ
    Ê¹ÓÃÃüÃû¿Õ¼ä£ºusing System.Xml.Serialization;
    ÒÔBookÀàΪÀý£º
    ´®Ðл¯Ä£°å£º
        public ......

Óз´ÐÍjava ¶ÔÏóתµ½xml xstream·½Ê½

package com.jcauto.action;
import java.util.ArrayList;
import java.util.List;
public class ContentRsp {

private String resultCode;

List<ContentInfo> contentList = new ArrayList<ContentInfo>();

public void addContent(ContentInfo contentInfo) {
contentList.add(contentI ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ