以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 XML基础 』  (http://bbs.xml.org.cn/list.asp?boardid=1)
----  XML导入网站问题,希望大侠指教,初学者,急急急急!!!!!!  (http://bbs.xml.org.cn/dispbbs.asp?boardid=1&rootid=&id=68210)


--  作者:wwzff
--  发布时间:10/13/2008 3:13:00 PM

--  XML导入网站问题,希望大侠指教,初学者,急急急急!!!!!!
一些公共机关的网站上报数据时提供导入xml文件功能,如国家无委http://202.106.162.146/rsframe/,我想知道这个xml模板是如何得到的,模板如下:
<?xml version="1.0" encoding="unicode"?>
<XML>
  <MAINT TableName="RSBT_STATION" OtherInfo="" opttype="1" version="1.0.0" FormTableName="TABLE11">
    <FORM opttype="1">
      <STDI>0001</STDI>
      <GUID />
      <TAPPCODE>130620080021</TAPPCODE>
      <SNAME>安国八方村</SNAME>
      <SADDR>安国八方村</SADDR>
      <SCITYCODE />
      <STYPEID>C</STYPEID>
      <STYPE />
      <SWORK />
      <SFLAG />
      <SEQUSUM />
      <SEQUSUM />
      <SLG>414864</SLG>
      <SLA>137902</SLA>
      <SAT>30</SAT>
      <SDATEB>2007-7-1</SDATEB>
      <SDSUK />
      <S1>1001</S1>
      <S2>3</S2>
      <S3>2.0</S3>
      <S4 />
      <S5 />
      <S6 />
      <S7 />
      <S8 />
      <S9 />
      <S10 />
      <S11 />
      <S12 />
      <S13 />
      <S14 />
      <S15 />
      <S16 />
      <S17 />
      <S18 />
      <S19 />
      <S20 />
      <TIMESTAMP />
      <DEMO />
      <V0><![CDATA[]]></V0>
      <V1 />
      <V2 />
      <V3 />
      <V4 />
      <V5 />
      <V6 />
      <V7 />
      <V8 />
      <V9 />
      <SUBT TableName="RSBT_FREQ" OtherInfo="">
        <FORM index="1" opttype="1" freqtype="1">
          <GUID />
          <STATIONGUID />
          <FTYPE>1</FTYPE>
          <FEFB>954</FEFB>
          <FEFE>960</FEFE>
          <FEP />
          <FEBAND />
          <FRFB>909</FRFB>
          <FRFE>915</FRFE>
          <FRP />
          <FRBAND />
          <FMOD />
          <FREQMB />
          <FCODE />
          <S1>1</S1>
          <S2>40</S2>
          <S3>1</S3>
          <S4>3</S4>
          <S5>3</S5>
          <S6 />
          <S7 />
          <S8 />
          <S9 />
          <S10 />
          <S11 />
          <S12 />
          <S13 />
          <S14 />
          <S15 />
          <S16 />
          <S17 />
          <S18 />
          <S19 />
          <S20 />
          <TIMESTAMP />
          <V0 />
          <V1 />
          <V2 />
          <V3 />
          <V4 />
          <V5 />
          <V6 />
          <V7 />
          <V8 />
          <V9 />
        </FORM>
        <FORM index="2" opttype="1" freqtype="1">
          <GUID />
          <STATIONGUID />
          <FTYPE>1</FTYPE>
          <FEFB>954</FEFB>
          <FEFE>960</FEFE>
          <FEP />
          <FEBAND />
          <FRFB>909</FRFB>
          <FRFE>915</FRFE>
          <FRP />
          <FRBAND />
          <FMOD />
          <FREQMB />
          <FCODE />
          <S1>2</S1>
          <S2>210</S2>
          <S3>2</S3>
          <S4>3</S4>
          <S5>3</S5>
          <S6 />
          <S7 />
          <S8 />
          <S9 />
          <S10 />
          <S11 />
          <S12 />
          <S13 />
          <S14 />
          <S15 />
          <S16 />
          <S17 />
          <S18 />
          <S19 />
          <S20 />
          <TIMESTAMP />
          <V0 />
          <V1 />
          <V2 />
          <V3 />
          <V4 />
          <V5 />
          <V6 />
          <V7 />
          <V8 />
          <V9 />
        </FORM>
        <FORM index="3" opttype="1" freqtype="1">
          <GUID />
          <STATIONGUID />
          <FTYPE>1</FTYPE>
          <FEFB>954</FEFB>
          <FEFE>960</FEFE>
          <FEP />
          <FEBAND />
          <FRFB>909</FRFB>
          <FRFE>915</FRFE>
          <FRP />
          <FRBAND />
          <FMOD />
          <FREQMB />
          <FCODE />
          <S1>3</S1>
          <S2>290</S2>
          <S3>3</S3>
          <S4>3</S4>
          <S5>3</S5>
          <S6 />
          <S7 />
          <S8 />
          <S9 />
          <S10 />
          <S11 />
          <S12 />
          <S13 />
          <S14 />
          <S15 />
          <S16 />
          <S17 />
          <S18 />
          <S19 />
          <S20 />
          <TIMESTAMP />
          <V0 />
          <V1 />
          <V2 />
          <V3 />
          <V4 />
          <V5 />
          <V6 />
          <V7 />
          <V8 />
          <V9 />
        </FORM>
      </SUBT>
      <SUBT TableName="RSBT_EQU" OtherInfo="">
        <FORM index="1" opttype="1" equpage="1">
          <GUID />
          <STATIONGUID />
          <ETYPE />
          <EQUMODU>A9100BTSMBI900</EQUMODU>
          <EQUAUTH>CMIIID:2003CP1567</EQUAUTH>
          <EQUMENU>上海贝尔阿尔卡特股份有限公司</EQUMENU>
          <EQUMENUCODE />
          <EQUPF>B</EQUPF>
          <EQUPOWL>39.8107170553497</EQUPOWL>
          <EQUPOWU>39.8107170553497</EQUPOWU>
          <EQUMB />
          <EQUCODE />
          <S1>1</S1>
          <S2>1</S2>
          <S3 />
          <S4 />
          <S5 />
          <S6 />
          <S7 />
          <S8 />
          <S9 />
          <S10 />
          <S11 />
          <S12 />
          <S13 />
          <S14 />
          <S15>1</S15>
          <S16 />
          <S17 />
          <S18 />
          <S19 />
          <S20 />
          <TIMESTAMP />
          <V0>46 dBm</V0>
          <V1 />
          <V2 />
          <V3 />
          <V4 />
          <V5 />
          <V6 />
          <V7 />
          <V8 />
          <V9 />
        </FORM>
        <FORM index="2" opttype="1" equpage="1">
          <GUID />
          <STATIONGUID />
          <ETYPE />
          <EQUMODU>A9100BTSMBI900</EQUMODU>
          <EQUAUTH>CMIIID:2003CP1567</EQUAUTH>
          <EQUMENU>上海贝尔阿尔卡特股份有限公司</EQUMENU>
          <EQUMENUCODE />
          <EQUPF>B</EQUPF>
          <EQUPOWL>39.8107170553497</EQUPOWL>
          <EQUPOWU>39.8107170553497</EQUPOWU>
          <EQUMB />
          <EQUCODE />
          <S1>1</S1>
          <S2>1</S2>
          <S3 />
          <S4 />
          <S5 />
          <S6 />
          <S7 />
          <S8 />
          <S9 />
          <S10 />
          <S11 />
          <S12 />
          <S13 />
          <S14 />
          <S15>1</S15>
          <S16 />
          <S17 />
          <S18 />
          <S19 />
          <S20 />
          <TIMESTAMP />
          <V0>46 dBm</V0>
          <V1 />
          <V2 />
          <V3 />
          <V4 />
          <V5 />
          <V6 />
          <V7 />
          <V8 />
          <V9 />
        </FORM>
        <FORM index="3" opttype="1" equpage="1">
          <GUID />
          <STATIONGUID />
          <ETYPE />
          <EQUMODU>A9100BTSMBI900</EQUMODU>
          <EQUAUTH>CMIIID:2003CP1567</EQUAUTH>
          <EQUMENU>上海贝尔阿尔卡特股份有限公司</EQUMENU>
          <EQUMENUCODE />
          <EQUPF>B</EQUPF>
          <EQUPOWL>39.8107170553497</EQUPOWL>
          <EQUPOWU>39.8107170553497</EQUPOWU>
          <EQUMB />
          <EQUCODE />
          <S1>1</S1>
          <S2>1</S2>
          <S3 />
          <S4 />
          <S5 />
          <S6 />
          <S7 />
          <S8 />
          <S9 />
          <S10 />
          <S11 />
          <S12 />
          <S13 />
          <S14 />
          <S15>1</S15>
          <S16 />
          <S17 />
          <S18 />
          <S19 />
          <S20 />
          <TIMESTAMP />
          <V0>46 dBm</V0>
          <V1 />
          <V2 />
          <V3 />
          <V4 />
          <V5 />
          <V6 />
          <V7 />
          <V8 />
          <V9 />
        </FORM>
      </SUBT>
      <SUBT TableName="RSBT_ANTFEED" OtherInfo="">
        <FORM opttype="1" antpage="1">
          <TIMESTAMP />
          <GUID />
          <STATIONGUID />
          <ATYPE />
          <ANTTYPE>BE</ANTTYPE>
          <ANTTYPE />
          <ANTMODU>YX900X90-15D</ANTMODU>
          <ANTMODU />
          <ANTMENU>亚信电子</ANTMENU>
          <ANTMENU />
          <ANTHIGHT>52</ANTHIGHT>
          <ANTHIGHT />
          <ANTGAINL>16.5</ANTGAINL>
          <ANTGAINL />
          <ANTGAINU>16.5</ANTGAINU>
          <ANTGAINU />
          <ANTANGLE />
          <ANTSIZE />
          <FEEDMENU />
          <FEEDMODU />
          <FEEDLENGHT />
          <FEEDLOSE>5.5</FEEDLOSE>
          <FEEDLOSE />
          <ANTCODE />
          <FEEDCODE />
          <S1>1</S1>
          <S1 />
          <S2>ODL</S2>
          <S2 />
          <S3>90</S3>
          <S3 />
          <S4>90</S4>
          <S4 />
          <S5 />
          <S6>3</S6>
          <S6 />
          <S7>3</S7>
          <S7 />
          <S8>1</S8>
          <S8 />
          <S9 />
          <S10 />
          <S11 />
          <S12 />
          <S13 />
          <S14 />
          <S15 />
          <S16 />
          <S17 />
          <S18 />
          <S19 />
          <S20 />
          <V0>对称振子天线</V0>
          <V0 />
          <V1 />
          <V2 />
          <V3 />
          <V4 />
          <V5 />
          <V6 />
          <V7 />
          <V8 />
          <V9 />
        </FORM>
        <FORM opttype="1" antpage="2">
          <TIMESTAMP />
          <GUID />
          <STATIONGUID />
          <ATYPE />
          <ANTTYPE>BE</ANTTYPE>
          <ANTTYPE />
          <ANTMODU>YX900X90-15D</ANTMODU>
          <ANTMODU />
          <ANTMENU>亚信电子</ANTMENU>
          <ANTMENU />
          <ANTHIGHT>52</ANTHIGHT>
          <ANTHIGHT />
          <ANTGAINL>16.5</ANTGAINL>
          <ANTGAINL />
          <ANTGAINU>16.5</ANTGAINU>
          <ANTGAINU />
          <ANTANGLE />
          <ANTSIZE />
          <FEEDMENU />
          <FEEDMODU />
          <FEEDLENGHT />
          <FEEDLOSE>5.5</FEEDLOSE>
          <FEEDLOSE />
          <ANTCODE />
          <FEEDCODE />
          <S1>2</S1>
          <S1 />
          <S2>ODL</S2>
          <S2 />
          <S3>90</S3>
          <S3 />
          <S4>90</S4>
          <S4 />
          <S5 />
          <S6>3</S6>
          <S6 />
          <S7>3</S7>
          <S7 />
          <S8>2</S8>
          <S8 />
          <S9 />
          <S10 />
          <S11 />
          <S12 />
          <S13 />
          <S14 />
          <S15 />
          <S16 />
          <S17 />
          <S18 />
          <S19 />
          <S20 />
          <V0>对称振子天线</V0>
          <V0 />
          <V1 />
          <V2 />
          <V3 />
          <V4 />
          <V5 />
          <V6 />
          <V7 />
          <V8 />
          <V9 />
        </FORM>
        <FORM opttype="1" antpage="3">
          <TIMESTAMP />
          <GUID />
          <STATIONGUID />
          <ATYPE />
          <ANTTYPE>BE</ANTTYPE>
          <ANTTYPE />
          <ANTMODU>YX900X90-15D</ANTMODU>
          <ANTMODU />
          <ANTMENU>亚信电子</ANTMENU>
          <ANTMENU />
          <ANTHIGHT>52</ANTHIGHT>
          <ANTHIGHT />
          <ANTGAINL>16.5</ANTGAINL>
          <ANTGAINL />
          <ANTGAINU>16.5</ANTGAINU>
          <ANTGAINU />
          <ANTANGLE />
          <ANTSIZE />
          <FEEDMENU />
          <FEEDMODU />
          <FEEDLENGHT />
          <FEEDLOSE>5.5</FEEDLOSE>
          <FEEDLOSE />
          <ANTCODE />
          <FEEDCODE />
          <S1>3</S1>
          <S1 />
          <S2>ODL</S2>
          <S2 />
          <S3>90</S3>
          <S3 />
          <S4>90</S4>
          <S4 />
          <S5 />
          <S6>3</S6>
          <S6 />
          <S7>3</S7>
          <S7 />
          <S8>3</S8>
          <S8 />
          <S9 />
          <S10 />
          <S11 />
          <S12 />
          <S13 />
          <S14 />
          <S15 />
          <S16 />
          <S17 />
          <S18 />
          <S19 />
          <S20 />
          <V0>对称振子天线</V0>
          <V0 />
          <V1 />
          <V2 />
          <V3 />
          <V4 />
          <V5 />
          <V6 />
          <V7 />
          <V8 />
          <V9 />
        </FORM>
      </SUBT>
    </FORM>
  </MAINT>
</XML>

--  作者:wwzff
--  发布时间:10/13/2008 3:34:00 PM

--  
急急急急急急急急急急急,有没有大侠有爱心呀?
--  作者:Qr
--  发布时间:10/14/2008 8:51:00 AM

--  
如果只需提交一次,在原文修改即可。如果要反复提交,可以考虑用DOM对象,生成以下格式的XML。DOM对象的应用可参阅W3C。
--  作者:wwzff
--  发布时间:10/14/2008 8:55:00 AM

--  
我的意思从他的模板上的字段修改就不能导入无委网站上看,他的xml应该是指定格式的,我的问题是:

无委的网站上没有做该xml的相关信息,只有手工录入的方法和导入xml的按钮,那我用什么方法能够得到xml模板?

现在的模板是请人编程做的,我想知道编程的人是用什么办法如何通过了解无委网站的信息作出xml模板的,当然现在我有xml模板,我通过编程可以随意编写导入无委网站,但是如果
无委网站的xml模板变了,那就没办法了?

不知到我说明白没有?
--  作者:Qr
--  发布时间:10/14/2008 4:50:00 PM

--  
正如百度的《互联网视频开放协议》(http://video.baidu.com/videoop.html),XML必须遵循一定格式或协议,只有按照其标准来生成XML,才能被程序所识别和处理,这也正是 DTD、Schema 存在的原因之一。
你不能要求计算机(网站或程序)读懂一个只有人的思维才处理的信息。所以,你要向无委的网站导入数据,必须先了解网站所允许和接受的XML格式。
至于无委的模板,你只能向无委或相关部门去了解,或者查看网站是否有相关说明。
--  作者:wwzff
--  发布时间:10/14/2008 9:45:00 PM

--  
如国家无委http://202.106.162.146/rsframe/
通过这个网站,采用什么方法得到模版。

给我写软件的人,也没有联系无委,只是通过上面的网站就得到了模版。


--  作者:wwzff
--  发布时间:10/15/2008 1:52:00 PM

--  
问题解决,结贴,谢谢大侠们的解答,解答的都对!
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
8,769.531ms