易截截图软件、单文件、免安装、纯绿色、仅160KB

一个可以从excel中读取数据并生成xml的vba程序

NND EXCEL2007,让老子找了半天才把button添加上去。
Sub 按钮1_Click()
 
    Dim sFileName As String          
    Dim ws As Worksheet                             '存储文件路径名和文件名的工作表
    Set ws = Worksheets("english")                  '设置工作表
    sFileName = "d:\text.xml"
   
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set orgFile = fso.OpenTextFile(sFileName, 2, True, -1)
   
    'dim head and tail
    Dim headline1, headline2, tailline, span_bef_english, span_aft_english, span_bef_foreign, span_aft_foreign
   
    headline1 = "<?xml version=""1.0\"" encoding=""utf-8\""?>"
    headline2 = "<systems>"
    tailline = "</systems>"
   
    'dim span before english
    span_bef_english = "<setting id=""id_xx"">" & Chr$(13) & "<content_en>"
    'dim span after english
    span_aft_english = "</content_en>"
    'dim span  before foreign language
    span_bef_foreign = "<content_fgn>"
    'dim span after forergn language
    span_aft_foreign = "</content_fgn>" & Chr$(13) & "</setting>"
   
   
    'write_x


相关文档:

c# xml操作

已知有一个XML文件(bookstore.xml)如下:
<?xml version="1.0" encoding="gb2312"?>
<bookstore>
  <book genre="fantasy" ISBN="2-3631-4">
    <title>Oberon's Legacy</title>
    <author>Corets, Eva</author>
  &nb ......

Asp.Net XML操作基类

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
using System.Xml;
using System.Text; ......

VB.NET2005读取XML数据

通过调用CreateDataSetfromXml取得XML数据
Imports System.Xml
Public Const FILE_CONFIG = "MZZ.xml"
Public Const PATH_CONFIG = "\XML\"
Dim dstXML As DataSet
Dim tblXML_DB As DataTable
Dim dtCod As New DataTable
Dim strSQL As String = ""

clsPublic ......

Loading XML data using ActionScript 3.0

Loading XML data using ActionScript 3.0
By Blue_Chi | Flash CS3 | ActionScript 3.0 | Beginner
Using XML is one of the best ways for structuring external content in a logical format that is easy to understand, process, and update. This tutorial will teach you the basics on how to load and process X ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号