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

Ò»¸ö¼òµ¥µÄxmlÀ࣬¿ÉÒÔ½âÎöºÍÉú³ÉxmlÎļþÊý¾Ý

<?php
include('xml.php');
$data = XML_unserialize($xml);
?>
$xml¼´ÊÇxmlÎļþµÄÄÚÈÝ£¬$dataÊǽâÎö³öµÄÊý×飻
<?php
include('xml.php');
$xml = XML_serialize($data);
?>
ÒÔÉÏΪʹÓÃʵÀý£¬·Ö±ð½âÎöxmlÎĵµºÍÉú³Éxml¸ñʽµÄÊý¾Ý
xml.phpÔ´Âë
<?php
###################################################################################
#
# XML Library, by Keith Devens, version 1.2b
# http://keithdevens.com/software/phpxml
#
# This code is Open Source, released under terms similar to the Artistic License.
# Read the license at http://keithdevens.com/software/license
#
###################################################################################
###################################################################################
# XML_unserialize: takes raw XML as a parameter (a string)
# and returns an equivalent PHP data structure
###################################################################################
function & XML_unserialize(&$xml){
$xml_parser = &new XML();
$data = &$xml_parser->parse($xml);
$xml_parser->destruct();
return $data;
}
###################################################################################
# XML_serialize: serializes any PHP data structure into XML
# Takes one parameter: the data to serialize. Must be an array.
###################################################################################
function & XML_serialize(&$data, $level = 0, $prior_key = NULL){
if($level == 0){ ob_start(); echo '<?xml version="1.0" ?>',"\n"; }
while(list($key, $value) = each($data))
if(!strpos($key, ' attr')) #if it's not an attribute
#we don't treat attributes by themselves, so for an empty element
# that has attributes you still need to set the element to NULL
if(is_array($value) and array_key_exists(0, $value)){
XML_serialize($value, $level, $key);
}else{
$tag = $prior_key ? $prior_key : $key;
echo str_repeat("\t", $level),'


Ïà¹ØÎĵµ£º

TextView ÔÚxmlÎļþÖеĽâÊÍ


°üλÖãºandroid.widget.TextView
XML Attributes
 
Attribute Name                 Related Method                   &n ......

XML½éÉÜ

XMLµÄÈ«³ÆExtensible Markup Language,Òâ˼ÊÇ¿ÉÀ©Õ¹µÄ±ê¼ÇÓïÑÔ£¬ÊDZê׼ͨÓñê¼ÇÓïÑÔSGML(Standard Generalized Markup Language)µÄÒ»¸ö×Ó¼¯¡£1998Äê2Ô£¬W3C·¢²¼ÁËXML1.0±ê×¼£¬ÆäÄ¿µÄÊÇΪÁËÔÚWebÉÏÄÜÒÔÏÖÓеij¬Îı¾±ê¼ÇÓïÑÔHTMLµÄʹÓ÷½Ê½Ìṩ£¬½ÓÊպʹ¦ÀíͨÓõÄSGML¡£XMLÊÇSGMLµÄÒ»¸ö¼ò»¯×Ó¼¯£¬ËüÒÔÒ»ÖÖ¿ª·ÅµÄ£¬×ÔÎÒÃèÊöµÄ ......

XMLÎļþ²Ù×÷

XmlDocument doc = new XmlDocument();
            string strtxt = "";
            doc.Load(Server.MapPath("XMLFile1.xml"));
          &nbs ......

xmlÓÐʲôÓÅÊÆºÍÌØµã


xmlÓÐʲôÓÅÊÆºÍÌØµã
“¿ÉÀ©Õ¹±ê¼ÇÓïÑÔ”(XML) ÌṩһÖÖÃèÊö½á¹¹»¯Êý¾ÝµÄ·½·¨¡£ÓëÖ÷ÒªÓÃÓÚ¿ØÖÆÊý¾ÝµÄÏÔʾºÍÍâ¹ÛµÄ
HTML ±ê¼Ç²»Í¬£¬XML ±ê¼ÇÓÃÓÚ¶¨ÒåÊý¾Ý±¾ÉíµÄ½á¹¹ºÍÊý¾ÝÀàÐÍ¡£
XML
ʹÓÃÒ»×é±ê¼ÇÀ´Ãè»æÊý¾ÝÔªËØ¡£Ã¿¸öÔªËØ·â×°¿ÉÄÜÊ®·Ö¼òµ¥Ò²¿ÉÄÜÊ®·Ö¸´ÔÓµÄÊý¾Ý¡£Äú¿ÉÒÔ¶¨ÒåÒ»×éÎÞÏÞÖÆµÄ XML ±ê¼Ç¡£ÀýÈç£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ