ÕâÊÇXMLµÄÄÚÈÝ
<?xml version="1.0" encoding="UTF-8"?>
<items>
<item>
<title Number = "25">ÔÙ̸ÍøÒ³±êÌâÉè¼ÆµÄÒâÒå¼°ÎÊÌâ</title>
<link>http://www.baidu.com</link>
<a>Ïà¹Ø½éÉÜ</a>
<author>ÁõÓ¢»Û< ......
Java code:
package lier.basic;
import java.io.File;
import java.util.List;
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;
public class ReadXml{
public static void main(String[] args) {
SAXReader ......
<?xml version="1.0" encoding="utf-8" ?>
<Menu>
<Navigation text="Îļþ">
<Child text="н¨">
<Grandson>ÏîÄ¿</Grandson>
<Grandson>ÍøÕ¾</Grandson>
<Grandson text="Îļþ">
<La ......
ÎÒÐèÒª½«Ò»Ð©ÏµÍ³ÐÅÏ¢ÅäÖõ½Ò»¸öXMLÎļþÖУ¬ÓÃjQueryÄܹ»¶ÁÈ¡£¬µ«ÈçºÎÐ޸ġ¢Ìí¼ÓºÍɾ³ýÄØ£¿
ÎÒ³¢ÊÔÁËappend·½·¨Ìí¼ÓÒ»¸ö½ÚµãºÍʹÓÃÁËattr·½·¨ÐÞ¸ÄÔªËصÄÊôÐÔ£¬¶¼Ã»Óгɹ¦¡£
¾´Çë¸ßÊÖÖ¸µã£¡
JSûÓÐдÎļþµÄȨÏÞ¡£¡£¡£¡£
......
ÐèÒªÓõ½¶ÁÈ¡xmlÎļþ£¬»ñÈ¡²ÎÊý¡£
´ÓÍøÉÏÏÂÔØÒ»¸öxml¶ÁÈ¡³ÌÐò£¬µ«ÊÇËû»ñÈ¡µÄ½ÚµãµÄÃû×Ö²»ÕýÈ·£¬Ëû»ñÈ¡µÄ½ÚµãÃû×Ö¶¼ÊÇ¡°#text¡±£º
#include "stdafx.h"
#include <iostream>
using namespace std;
#include <msxml.h>
#include <atlstr.h> ......
out.setCodec("UTF-8");
out << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
<<"<Font ss:FontName=\"ËÎÌå\" x:CharSet=\"134\" ss:Size=\"12\" ss:Color=\"#FFFFFF\"/>\n"
ÆäÖÐÊä³öµÄÖÐÎÄÂÒ ......
×ܼǼÊý:834; ×ÜÒ³Êý:139; ÿҳ6 Ìõ;
Ê×Ò³ ÉÏÒ»Ò³ [2] [3] [4] [5] 6
[7] [8] [9] [10] [11] ÏÂÒ»Ò³ βҳ