ÓÐÒ»¸öCS½á¹¹µÄ´òÓ¡»ú¹ÜÀí³ÌÐò£¬´ÓXmlÎļþÖжÁÈ¡ÅäÖã¬ÅäÖÃÈçÏÂ
XML code:
<PrintMode type = "4x4">
<Printer id = "0" width = "220" height = "8">
<Print id = "0" direction = "positive" barcodeType = "code128" ......
ÎÒÏÖÔڸоõÎÒµÄweb.xmlÎļþÓÐÌ«¶àµÄÐÅÏ¢ÁË
Ïë¸øÆä·Ö×°³É¼¸¸öxmlÎļþ
ÎÒÖªµÀÔÚstrutsÖÐÓÐÕâ¸ö¼¼Êõ,µ«ÊÇÎÒÏëÖªµÀÔÚ²»Óÿò¼ÜµÄÇé¿öÏ¿ÉÒÔ.ÅäÖÃÆäËüxmlÀ´ÈÃweb.xmlÀ´¶Áȡô?
strutsÔõôʵÏֵģ¿
<init-param>
<param-name> config </param-name>
......
JScript code:
//XML HTTPÇëÇó¶ÔÏóµÄ´´½¨·½·¨
if(typeof XMLHttpRequest == "undefined" && window.ActiveXObject){
function XMLHttpRequest(){
var arrSignatures = ["MSXML2.0.XMLHTTP.5.0","MSXML2.0.XMLHTTP.4.0","MSXML2.0.XMLHTTP.3.0",
......
¶ÁÈ¡XMLÎļþ
Java code:
public class ResourceParse {
public static Document document_en_US = null;
/**
* ¾²Ì¬³ÉÔ±·½·¨
*
* ¸ºÔð ¡¾letter_resource.xml¡¿ ÅäÖÃÎļþ½âÎö²Ù×÷
*/
static {
try {
document_en_US = new SAXReader().read(Thread.cur ......
ÎÒ²»ÖªµÀÓÐûÓа취¿ÉÒÔ¸øÈÎÒâÒ»¸öÀà½øÐÐÐòÁл¯ºÍ·´ÐòÁл¯²Ù×÷¡£
C# code:
public static void Serial<T>(T[] items, string path)
{
XmlSerializer xmlSerializer = new XmlSerializer(typeof(T[]));
TextWriter writer = new StreamWriter(path);
try
{
xmlSerializer.Serializ ......
ÇëÎÊËÖªµÀÔõôÐÞ¸Äjar°üÖеÄxmlÎļþ°¡£¬²»Ïë²ÉÓÃÏȽâѹÐÞ¸ÄÔÚѹËõµÄ°ì·¨£¬ÎļþĿ¼aaa.jarÖÐÓиötemplateÎļþ¼ÐÏÂÃæµÄabc.xml Ïëͨ¹ýjava³ÌÐòÐÞ¸Äabc.xmlÎļþ£¡
Ö»ÊÇÕý³£Ð޸ĵĻ°£¬winrarÖ±½ÓÐ޸ľͿÉÒÔ¡£
³ÌÐòµÄ»°±ØÐëÏȽâѹÔÙѹËõ£¬ÒòΪÐÞ¸ÄÆäÖÐÒ»¸öÎļþ£¬Ñ¹ËõµÄ×ֵ䶼±äÁË¡£
²»Äܸģ¬jar °üÖеĶ«Î÷Ó¦¸ÃÊÇÖ»¶ÁµÄ¡ ......
×ܼǼÊý:834; ×ÜÒ³Êý:139; ÿҳ6 Ìõ;
Ê×Ò³ ÉÏÒ»Ò³ 1
[2] [3] [4] [5] [6] [7] [8] [9] [10] ÏÂÒ»Ò³ βҳ