| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1257 人关注过本帖
标题:[求助]XML代码分析,有人能帮我看看吗??????
只看楼主 加入收藏
qyyq
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2007-4-9
收藏
 问题点数:0 回复次数:7 
[求助]XML代码分析,有人能帮我看看吗??????

<?xml version="1.0" ?>

- <XRESOURCE>

- <STRINGS>

<S10 Help="Display Name">SNMP Service</S10>

<S11 Help="Provider">Categoric Software</S11>

<S12 Help="Description">SNMP Service Component</S12>

<S13 Help="Version">5.5.1</S13>

<S101>SNMP</S101>

<S102>SNMP</S102>

<S103>&Properties</S103>

<S104>SNMP service</S104>

<S105>Request type</S105>

<S106>Override address</S106>

<S107>Enterprise OID</S107>

<S108>Generic trap</S108>

<S109>Specific trap code</S109>

<S110>List of OIDs</S110>

<S111>Add</S111>

<S112>Delete</S112>

<S113>Object ID</S113>

<S114>Type</S114>

<S115>Value</S115>

<S116>Inform v2c</S116>

<S117>Get v1</S117>

<S118>Set v1</S118>

<S119>Set v2c</S119>

<S120>Get v2c</S120>

<S121>Trap v1</S121>

<S122>Trap v2c</S122>

<S123>Get next v1</S123>

<S124>Authentication failure</S124>

<S125>Cold start</S125>

<S126>egp neighbour loss</S126>

<S127>Enterprise specific</S127>

<S128>Link down</S128>

<S129>Link up</S129>

<S130>Warm start</S130>

<S131>SNMP description</S131>

<S132>&Object list</S132>

<S133>Trap value</S133>

<S134>Description</S134>

<S135>Get next v2c</S135>

<S136>Get bulk v2c</S136>

<S137>&Request type properties</S137>

<S138>Use v3 security</S138>

<S139>v2c trap properties</S139>

<S140>v1 trap properties</S140>

<S141>Get next</S141>

<S142>Get bulk</S142>

<S143>There are no additional properties to set</S143>

<S144>Data section</S144>

<S145>Nonrepeaters</S145>

<S146>Max repetitions</S146>

<S147>Walk until end of sub-tree</S147>

<S148>Walk for set number of repetitions</S148>

<S199>&New SNMP service</S199>

<S200>SNMP services</S200>

<S201>SNMP service</S201>

<S202>Service &properties</S202>

<S203>Name</S203>

<S204>Queue</S204>

<S206>Please enter a name for the service.</S206>

<S207>Community</S207>

<S208>Write community</S208>

<S209>Remote address</S209>

<S210>SET port</S210>

<S211>Retries</S211>

<S212>Timeout</S212>

<S213>TRAP port</S213>

<S214>User name</S214>

<S215>Authentication protocol</S215>

<S216>Authentication password</S216>

<S217>Private password</S217>

<S218>Context name</S218>

<S219>SET EngineID</S219>

<S220>TRAP EngineID</S220>

<S221>None</S221>

<S222>MD5</S222>

<S223>SHA</S223>

<S224>S&NMP properties</S224>

<S225>&Security</S225>

<S226>Security level</S226>

<S227>None</S227>

<S228>AuthNoPriv</S228>

<S229>AuthPriv</S229>

<S300>&Properties</S300>

<S301>SNMP listener</S301>

<S302>Properties</S302>

<S303>Select which events are receivable</S303>

<S304>Xalert</S304>

<S305>Repository</S305>

<S306>Port</S306>

<S307>Community</S307>

<S308>EngineID</S308>

<S350>v1 Traps</S350>

<S351>v2c Traps</S351>

<S352>v3 Traps</S352>

<S353>v2c Informs</S353>

<S354>v3 Informs</S354>

<S355 Help="Default port number for traps and Informs">162</S355>

<S356 Help="Default community. Do not translate unless you have good reason">public</S356>

<S357 Help="Server instance circular">Xalert</S357>

<S370>An Xalert must be selected</S370>

<S371>A Repository must be selected</S371>

<S372>A valid Port number must be entered</S372>

<S373>A Community should be entered</S373>

<S374>A UserName must be entered</S374>

<S375>An Engine ID should be entered</S375>

<S376>A ContextName should be entered</S376>

<S377>The Engine ID must start with 0x</S377>

<S378>An Authentication protocol must be selected</S378>

<S379>An Authentication password must be entered</S379>

<S380>A Privacy password must be entered</S380>

<S381>You have not chosen to receive any SNMP message types</S381>

<S401>SNMP router</S401>

<S500>SNMP in</S500>

<S501>&Properties</S501>

<S502>SNMP &listener</S502>

<S503 Help="Default BO Name">SNMP in</S503>

<S504 Help="Export circular dependency">SNMP server instance</S504>

<S600>No trap port has been set</S600>

<S601>No set port has been set</S601>

<S602>No remote address has been set</S602>

<S603>No user name has been specified</S603>

<S604>No authentication password has been specified</S604>

<S605>No private password has been specified</S605>

<S606>No set engine ID has been specified</S606>

<S607>No trap engine ID has been specified</S607>

<S608>No authentication protocol has been specified</S608>

<S700>No module ID has been specified</S700>

<S701>No object ID has been specified</S701>

<S702>No object type has been specified</S702>

<S703>No object value has been specified</S703>

<S704 />

<S710>No object IDs have been entered</S710>

<S711>No host address has been specified</S711>

<S712>No host port has been specified</S712>

<S713>No specific trap code has been specified</S713>

<S714>No enterprise value has been specified</S714>

<S715>No trap value has been specified</S715>

<S716>No SNMP service has been specified</S716>

<S717>No Data section has been specified</S717>

<S718>SNMP Listener %1 is being used by alerts and cannot be deleted.</S718>

<S800>String</S800>

<S801>Integer</S801>

<S802>Gauge</S802>

<S803>Timeticks</S803>

<S804>IPAddress</S804>

<S805>Counter</S805>

<S806>Opaque</S806>

<S807>ObjectID</S807>

<S1000>SNMP in</S1000>

<S1001>No listener selected</S1001>

</STRINGS>

- <HELPCONTEXTS>

<H1 FILE="GeneralModules.chm" ID="7200" />

</HELPCONTEXTS>

< ESOURCE>

译首尾括号间的内容 有高手能帮帮忙吗?

搜索更多相关主题的帖子: XML 代码 
2007-04-09 10:29
skyland84
Rank: 2
等 级:新手上路
威 望:4
帖 子:544
专家分:0
注 册:2006-10-9
收藏
得分:0 
这是 外语!基本可以看出什么来!

你直接把它翻译了不就可以了!

决定人生~
2007-04-09 11:00
qyyq
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2007-4-9
收藏
得分:0 
我是想翻译尖括号内的 定义
2007-04-09 11:05
冰镇柠檬汁儿
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:北京
等 级:版主
威 望:120
帖 子:8078
专家分:6657
注 册:2005-11-7
收藏
得分:0 
这是XML文件的内容啊,用读写XML的方式就可以啊

本来无一物,何处惹尘埃
It is empty at all here, Why pm 2.5 is so TMD high!
2007-04-09 11:23
qyyq
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2007-4-9
收藏
得分:0 
我是想知道 尖括号内 定义的具体含义
2007-04-09 11:45
bygg
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:乖乖的心中
等 级:版主
威 望:241
帖 子:13555
专家分:3076
注 册:2006-10-23
收藏
得分:0 
LZ你会XML吗?

飘过~~
2007-04-09 12:56
冰镇柠檬汁儿
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:北京
等 级:版主
威 望:120
帖 子:8078
专家分:6657
注 册:2005-11-7
收藏
得分:0 
以下是引用qyyq在2007-4-9 11:45:32的发言:
我是想知道 尖括号内 定义的具体含义

那些标签是随便定义的,建议你看看XML的语法,这样你就明白了


本来无一物,何处惹尘埃
It is empty at all here, Why pm 2.5 is so TMD high!
2007-04-09 13:43
冰镇柠檬汁儿
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:北京
等 级:版主
威 望:120
帖 子:8078
专家分:6657
注 册:2005-11-7
收藏
得分:0 
回复:XML 语法规则

XML的语法规则是非常简单而又非常严格的;它非常易于学习,也非常易于使用。

Because of this, creating software that can read and manipulate XML is very easy.
因此,开发能够识别和处理XML的软件也非常的容易。


--------------------------------------------------------------------------------

An Example XML Document
XML文档样文
XML documents use a self-describing and simple syntax.
XML文档使用自述性质的简单的语法.

<?xml version="1.0" encoding="ISO-8859-1"?><note><to>Tove</to><from>Jani</from><heading>Reminder</heading><body>Don't forget me this weekend!</body></note>

The first line in the document - the XML declaration - defines the XML version and the character encoding used in the document. In this case the document conforms to the 1.0 specification of XML and uses the ISO-8859-1 (Latin-1/West European) character set.
文档的第一行 — XML声明 — 定义XML的版本和文档所用字体的编码,这个例子里文档使用XML1.0版,设置的字体编号是ISO-8859-1 (Latin-1/West European)

The next line describes the root element of the document (like it was saying: "this document is a note"):
第二行描述了文档的根元素 (像它说的那样: "this document is a note"):

<note>

The next 4 lines describe 4 child elements of the root (to, from, heading, and body):
接下来4行描述了根元素的4个子元素 (to, from, heading, 和 body):

<to>Tove</to><from>Jani</from><heading>Reminder</heading><body>Don't forget me this weekend!</body>

And finally the last line defines the end of the root element:
最后一行定义了根元素的结尾:

</note>

Can you detect from this example that the XML document contains a Note to Tove from Jani? Don't you agree that XML is pretty self-descriptive?
你能从这例子中发现其实这份XML文档包含了一个Jani给Tove的便条(Note)吗?你不认为XML是非常具有自我描述性质的语言吗?


--------------------------------------------------------------------------------


All XML Elements Must Have a Closing Tag
所有的XML元素必须有一个结束标签
With XML, it is illegal to omit the closing tag.
XML中,省略结束标签是不正确的

In HTML some elements do not have to have a closing tag. The following code is legal in HTML:
在HTML中一些元素是不必一定得有结束标签的.下面的代码在HTML中是合法的:

<p>This is a paragraph<p>This is another paragraph

In XML all elements must have a closing tag, like this:
XML中所有的元素都必须有结束标签,像这样:

<p>This is a paragraph</p><p>This is another paragraph</p>

Note: You might have noticed from the previous example that the XML declaration did not have a closing tag. This is not an error. The declaration is not a part of the XML document itself. It is not an XML element, and it should not have a closing tag.
注意::也许你在前面的例子里已经注意到,XML声明没有结束标签.这并不是个错误.声明并不是XML文档本身的一部分.声明不是一个XML元素,所以它不该有结束标签.


--------------------------------------------------------------------------------

XML Tags are Case Sensitive
XML标签区分大小写
Unlike HTML, XML tags are case sensitive.
这点和HTML不一样,XML标签是区分大小写的

With XML, the tag <Letter> is different from the tag <letter>.
在XML中,标签<Letter>和 <letter>.是不同的.

Opening and closing tags must therefore be written with the same case:
因此始标签与末标签必须一律用大写字母或一律用小写字母.

<Message>This is incorrect</message><message>This is correct</message>


--------------------------------------------------------------------------------

XML Elements Must be Properly Nested
XML元素必须嵌套合理
Improper nesting of tags makes no sense to XML.
不合理的标签嵌套对XML来说毫无意义.

In HTML some elements can be improperly nested within each other like this:
在HTML中某些元素相互间可以被不合理的欠套,就像这样:

<b><i>This text is bold and italic</b></i>

In XML all elements must be properly nested within each other like this:
在XML中所有元素都必须像这样被合理的嵌套:

<b><i>This text is bold and italic</i></b>


--------------------------------------------------------------------------------

XML Documents Must Have a Root Element
XML文档必须有一个根元素
All XML documents must contain a single tag pair to define a root element.
所有的XML文档必须包含一对单一的标签来定义一个根元素

All other elements must be within this root element.
所有其他的元素必须包含在这个根元素中

All elements can have sub elements (child elements). Sub elements must be correctly nested within their parent element:
所有元素都可以有副元素(子元素).副元素必须在它们的父元素里面被正确的嵌套

<root> <child> <subchild>.....</subchild> </child></root>


--------------------------------------------------------------------------------

XML Attribute Values Must be Quoted
XML属性值必须被引号引起来
With XML, it is illegal to omit quotation marks around attribute values.
XML中,省略属性值外面的引号是不正确的

XML elements can have attributes in name/value pairs just like in HTML. In XML the attribute value must always be quoted. Study the two XML documents below. The first one is incorrect, the second is correct:
XML元素可以有像在HTML里的那些“属性名/值”这样成对的属性.在XML里属性值必须引在引号里.看看下面这两个XML文档.第一个是错误的,第二个是正确的:

<?xml version="1.0" encoding="ISO-8859-1"?><note date=12/11/2002><to>Tove</to><from>Jani</from></note>

<?xml version="1.0" encoding="ISO-8859-1"?><note date="12/11/2002"><to>Tove</to><from>Jani</from></note>


The error in the first document is that the date attribute in the note element is not quoted.
第一份文档的错误是便条元素里的日期属性未被引在引号里

This is correct: date="12/11/2002". This is incorrect: date=12/11/2002.
这是正确的: date="12/11/2002". 这是错误的: date=12/11/2002.


--------------------------------------------------------------------------------

With XML, White Space is Preserved
在 XML里,空格是被保留的.
With XML, the white space in your document is not truncated.
在XML里,你的文档里的空格是不会被删除的.

This is unlike HTML. With HTML, a sentence like this:
这点和HTML不同.在HTML中,象这样的句子:

Hello my name is Tove,

will be displayed like this:
会被显示成这样:

Hello my name is Tove,

because HTML reduces multiple, consecutive white space characters to a single white space.
因为HTML会缩减倍数,连续的空格字符会被减少为一个空格符


--------------------------------------------------------------------------------

With XML, CR / LF is Converted to LF
在XML中, CR / LF 会被修改为 LF
With XML, a new line is always stored as LF.
在XML中,新的一行会作为LF储存起来.

Do you know what a typewriter is? Well, a typewriter is a mechanical device which was used last century to produce printed documents. :-)
你知道打字机是什么吗?打字机是上世纪被用于制造打印文件的机器装置

After you have typed one line of text on a typewriter, you have to manually return the printing carriage to the left margin position and manually feed the paper up one line.
在打字机上打完一行文本后,你得手工地把打印架推回左边的页面空白处,而且手工地把纸调高一行

In Windows applications, a new line is normally stored as a pair of characters: carriage return (CR) and line feed (LF). The character pair bears some resemblance to the typewriter actions of setting a new line. In Unix applications, a new line is normally stored as a LF character. Macintosh applications use only a CR character to store a new line.
在Windows应用软件中,新的一行通常被储存为一对字符:打印架推回(carriage return 简称CR),新行补给(line feed简称 LF).字符对和打字机设置新行时的系列动作有相似之处,在Unix应用软件中,新行通常被储存为”LF”字符, Macintosh应用软件只用”CR”字符来储存新行.


--------------------------------------------------------------------------------

Comments in XML
XML中的注释
The syntax for writing comments in XML is similar to that of HTML.
XML注释的写法和HTML类似

<!-- This is a comment -->


--------------------------------------------------------------------------------

There is Nothing Special About XML
XML没有什么特别的
There is nothing special about XML. It is just plain text with the addition of some XML tags enclosed in angle brackets.
XML没有什么特别的,它只是普通文本,此外包含着些被关在角型括号的XML标签.

Software that can handle plain text can also handle XML. In a simple text editor, the XML tags will be visible and will not be handled specially.
能处理普通文本的软件同样能处理XML文件.在一个简易的文本编辑器里,XML标签是可见的,而且不会被特殊地处理

In an XML-aware application however, the XML tags can be handled specially. The tags may or may not be visible, or have a functional meaning, depending on the nature of the application.
然而在能识别XML的应用软件里,XML标签可以被特殊处理.标签可以是可见的,也可以是不可不见,或者可能含有一种功能性的含义,这得取决于应用软件的性质.


本来无一物,何处惹尘埃
It is empty at all here, Why pm 2.5 is so TMD high!
2007-04-09 13:46
快速回复:[求助]XML代码分析,有人能帮我看看吗??????
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.018179 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved