w*********n 发帖数: 84 | 1 说到底其实没有什么区别.
XML 的特点用 HTML 也是可以实现的, 把 XML 用的简单一点儿和 HTML 几乎相同.
XML 和 HTML 主要是 major 不同:
就象小胖鱼说的:
XML major in data representation
HTML major in data presentation |
|
n**m 发帖数: 255 | 2 XML and HTML is for totally different purpose.
HTML is for display on browers, and most likely that is its only working field
XML is for transfer data. Browers is only one for its usage
It is just a name. May be not quite suitable from some point of view
my 2 cent about this question is as above
No directly relationship. Web services is only one(quite popurlar field) for
XML
Definitely not. Actually, consier XML is dealt with data, it is more
closer to database instead of www browers.
Remember |
|
w*l 发帖数: 43 | 3 I want to display my "sho.gif" image in xml and xsl, but the result is just x
and no image is displayed. I don't know the reason, please help me out. thanks
a lot.
The xsl, xml and dtd files are as follows:
xsl:
xmlns:xsl = "http://www.w3.org/1999/XSL/Transform">
doctype-system |
|
vi 发帖数: 309 | 4 Thanks for the enlightening comments, and please forgive my slow learning.
When I put 'XML server' in google, there are lots of returns of different
brand XML server packages. This is why I am asking whether Microsoft IIS
includes an XML server.
Also, for the pages (ending .xml or .xsl) I included in another thread, as
well as many pages on the web, my browser (IE 6 and Mozilla 0.9.9) both only
shows the source code. I wonder whether there's some places I need to set up.
Thanks again. |
|
k****j 发帖数: 10 | 5 if your XML is simple without DTD, use XML::Simple, then handle the data
in hash or list
otherwise, XML::Parser::Expat, XML::Parser::Lite |
|
m******o 发帖数: 162 | 6 Can anyone tell me how to creat an XML dosument and published it on IE?
I am thinking of the following steps (don't know if it is correct):
(please don't laugh, if the description sounds too "Wai4 hang2", I really
don't know about XML)
1. used codes to tag on the information (save as "XML" document)
2. creat a stylesheet (save as "css" or "XSL"document)
3. link the stylesheet with the "XML" document, and save it as another
document??? save in what format?
4. apply the new saved document on IE??? |
|
l***y 发帖数: 25 | 7 1. Is there any kind of "polymorphism" in XML like
in Java? Can type substitution do this?
2. Having defined an XML schema(*.xsd), How can I
validate my XML instance file using any XML parser?
I am using SAX parser.
3. And given a *.xsd file, if I want to define any
instance file, I can use the global element and
global attribute. Can I directly use the global types
(either simple or complex) defined in the schema?
Maybe the questions are trivial or not well stated, but
your help will be highly |
|
x*l 发帖数: 6 | 8 XML is a static file format, SOAP uses XML format to define
a message to be transmitted over HTTP internet. So in a word,
XML is a static format; SOAP is XML message to send or receive. |
|
l********h 发帖数: 16 | 9 I am new to use XML/Perl for web application.
The database is a native db (XML documents).
I am thinking about using XML::Generator::DBI as the middle layer.
What should be used as web interface? SOAP? REST? XML-RPC?
please suggest and correct my thoughts!
Thanks! |
|
s***h 发帖数: 88 | 10 XML is a format for data transfer, while HTML is a format for data
presentation as everyone knows. It would be impossible to discuss why it is
useful, but I think there is nothing conflict between XML and RPC/RMI. When
it comes down to coding, we still implement in RPC or RMI. XML is a standard
that tells communication partners data format they all agree on in RPC/RMI
application.
Yes, XML itself can do nothing but tells you the structure and format of data
it contains. But, if having to co |
|
b****n 发帖数: 35 | 11 Hello folks,
I need to process some .xml files, whose schema files are given, in a softwa
re module. The XML files only describes the formate of the data I am supposd
to receive and I need to interpret the data and accordingly do the real wor
k, e.g. call some APIs (likely in C) of other modules. My questions are:-
1) To interpret the xml files, is a XML parser what I need? Which one is bet
ter for me? I know there r some like DOM embeded in browser? My platform is
Windows at the moment and the |
|
a*****a 发帖数: 1429 | 12 【 以下文字转载自 Linux 讨论区,原文如下 】
发信人: atnalta (职业debugger), 信区: Linux
标 题: PERL XML parser
发信站: Unknown Space - 未名空间 (Tue Jul 6 14:58:18 2004) WWW-POST
I'm developing a scripting tool on PERL. Need to use XML parser.
I am familiar with PERL and XML, but never have experience on PERL
and XML combination. I've searched CPAN, got 70+ modules. Don't know
which is the most popular. Just need SAX parser. Any suggestions? |
|
|
z****e 发帖数: 54598 | 14
variables
这不就是xml吗?
你认为xml是什么样的?
xml不就是一堆<>里面的东西么? |
|
H********e 发帖数: 130 | 15 我的PhD 研究是做XML查询处理的,经常要处理GB级别的XML文件,如果需要考虑XML自
己的模式DTD的话,SAX是很好的选择
我有现成的Java代码,如果你需要的话,我可以发给你 |
|
f***u 发帖数: 58 | 16 我没邀请xml当版主,我这邀请也不管用。做不做实事和当不当版主没啥必然联系。xml
这么精力充沛又热心公益,做实事就好了。至于当不当版主这种虚名,xml也是不在意
的。 |
|
p*******y 发帖数: 18288 | 17 property里显示——
type of file: XML Document (.XML)
但rename时.xml没有显示 |
|
aw 发帖数: 127 | 18 你需要.NET
FRAMEWORK,再装IIS,次序反了或已经有IIS的话,需要改写MACHINE.config文件中的一
段(具体忘了),这是个小BUG,GOOGLE上查得到。
XML的用处很多,跟.NET没有必然联系。从FRONT END来讲,主要是更好的把数据,处理,
显示分离开来,提高了灵活性和维护性。以前的ASP比较DIRTY,东西都嵌在一起,CODE一
长就很难看了,容易出错,也不利于重复利用。
传统ASP(如果不用COM的话),PRESENTATION/PROCESSING/DB ACCESS统统混在一起,非常
不好(各个方面都是),也不安全。ASP .Net使用CODE BEHIND,实际上就是把PROCESSING
从PRE中分了出去。
用XML在LAYER与LAYER之间交换数据,可以实现LOOSE COUPLING,也就是彼此分离,依赖
少。
单从FRONT END来说,XML的关键在于它是PORTABLE DATA,你可以把数据按你所需任意显
示(用XSLT),比如同一个REPORT,可以有N多个版本。
否 |
|
m**c 发帖数: 90 | 19
Sorry I didn't make myself very clear in my post: You need to have a file
called "web.xml" in "${TOMCAT_HOME}/webapps/myapp/WEB-INF". You can copy
"web.xml" from "${TOMCAT_HOME}/webapps/examples/WEB-INF" to
"${TOMCAT_HOME}/webapps/myapp/WEB-INF", then modify it a little bit. Why
don't post the "web.xml" from "${TOMCAT_HOME}/webapps/examples/WEB-INF" to
this board so that I can take a look?
place
it?
examples.
面
文件放在examples目录下(D:\jakarta-tomcat-4.1.24\webapps\examples\WEB-INF\class |
|
n******l 发帖数: 3427 | 20 XML文件, 想在页面做这样一个标签,调用preview.swf,
点击之后在新的标签打开FLASH。
用了下面的代码
"preview.swf" xml="content.xml" />
target="_blank" 没有作用,
请教应该如何做修改?
万分感谢。 |
|
s*****y 发帖数: 3 | 21 我用libxml2 parser.h 中的 xmlReadFile 打开一个xml file
xmlReadFile 的 parameter -> const char *URL 不支持 wchar,所以当xml file的
path 是 Unicode时, 需要用WideCharToMultiByte转化。 但是如果Unicode的path有
非英文字符时,这也方法就行不通了。
有没有什么方法可用libxml2 的api,open unicode path的 xml file呢?
谢谢! |
|
B*****n 发帖数: 135 | 22
basically with XML in oracle server you can have dynamic XML
web pages like the one below:
SELECT * FROM stock where rise > 50%
oracle application server receives request for this page and
passes it to the db server which retrieves the result for the
embedded query and applies the style sheet specified and
returns a normal but pretty-formated html page. |
|
s**********o 发帖数: 14359 | 23 for xml path不是转换成XML FORMAT了么,然后再从XML读出来,COMMA DELIMITED,
到底要搞个啥结果? |
|
d*********t 发帖数: 277 | 24 初学SQL,XML和JSON Data,querying XML要不要学,如果要,是放在SQL之前还是之后
,谢谢大家。 |
|
d*******n 发帖数: 109 | 25 I figured it out myself,
the code should be something like this:
select
'1' AS "MessageNo",
'DLA' AS "MessageID" ,
(select a AS 'No'
from b where c = 1 for XML path('Load'),type, ELEMENTS)
for XML path('Message'),type,ELEMENTS
this key thing for me is to add 'type', so force the XML conversion, without
the 'type', some wrong codes will be generated.
Thanks, |
|
E*******s 发帖数: 42 | 26 1. Web services infrastructure 以XML作为data format, 以SOAP to package up
Web services infrastructure leverages the Internet as the communications
fabric, leverages XML as the data format, leverages SOAP as the way to package
up interactions between different applications and different services.
it gives us a very robust, but still very simple framework to build these
applications on top of it.
2. the methodology for Web services , It's a set of protocols and format like
SOAP, like XML
所以如果你有一些exis |
|
L*******r 发帖数: 1011 | 27 这里介绍XML handling in C#.
namespace: System.Xml
1. SAX way: In C#, 相关类是: XmlTextReader/XmlTextWriter, XMLNodeReader/....
如果你只要读入一次,SAX是最有效率的选择。
2. DOM way: In C#, 相关类是: XmlDocument, XmlNode, ...
如果你的文件或者数据不大,内存能装下,并且你需要多次读取数据,你可以使用它
。
DOM的好处是结构直观。
3. 我们也可以直接用ADO.Net中的DataSet将XML调入。
三种方法在我们的程序中都可以使用。因为我们的数据非常少。
如果使用1,visitor
pattern是典型做法。用swith-case如果你不在乎你的结构(ad-hoc)。
如果使用2,If you want, 你可以使用Xpath来辅助.而且你有一个很直观的DOM结构。
如果使用3, 你今后可以轻易地将数据装入数据库。
1, 2对于Java和C++ programmers已经没有什么新意。
3 的 dataset是 |
|
k***e 发帖数: 7933 | 28 看xml版很萧条,就放在这里了,hoho。
in xml file, how to easily access a particular node?
in other words, is there to uniquely identify a node(in c#)?
I remember there is a position() function in xsl, don't
know if it works this way.
for example, we can easily access an object in an array
by the index. is there any similar thing in xml? (maybe
just use SelectNodes to select nodes and use index? ) |
|
A****s 发帖数: 112 | 29 这是一个常见的任务。
你把XML的结构用XML Schema描述一下,Visual Studio 会自动产生Parse的代码,这样
很容易转化为 C# Object, 其他的就自己写代码。
也可以用XSLT来从XML中提取数据. |
|
z**r 发帖数: 17771 | 30 基本上,这个还是属于layer 7 switching。marketing预测指出,未来的internet
traffic将会有绝大多数(?)是xml traffic,那么如何面对xml traffic,从carrier角
度看,可能相对简单些,就是快速安全的forward就可以,但是从enterprise的角度看,
就会复杂很多,举一个被用滥了的例子来说,一个interenet用户在amazon上面下了一笔
订单,价值1000万美金,另外一个interenet用户同时下了一笔价值10美金的订单,对于
整个业务流程,是没有本质上的区别的,但是,显然,不论从哪个角度讲,amazon应该更
加重视下了1000万美金的用户,应该尽可能的给这个用户更好的purchase experience,
那么用传统的网络,将会很难区分这两笔订单的不同,因为xml的特殊性,比如很多
attribute在里面,可以轻松区别。只要classfication做出来了,剩下的比如给什么样更
好的服务等等,就好办多了。
请继续补充 |
|
o**d 发帖数: 11 | 31 You need to get JAXP( Java API for XML Parsing). It provides
bvasic functionality for reading , manipulating, and
generating XML documents through pure Java API.
Here is the URL:
http://java.sun.com/xml/download.html |
|
r********u 发帖数: 3 | 32 try
~/source_code/java/javaxml2/ch03/src]60: java -classpath "../../lib/xerces-2_6_2/xml-apis.jar:." javaxml2.SAXTreeViewer ../xml/contents.xml
^^^^^^^^^^^ |
|
l***r 发帖数: 459 | 33 【 以下文字转载自 Programming 讨论区,原文如下 】
发信人: laoer (You know what!), 信区: Programming
标 题: a question on XML parser
发信站: Unknown Space - 未名空间 (Tue Jun 15 22:29:14 2004) WWW-POST
Greetings,
I have several "<.." in one file. Right now, I first divide this
file to many string. Each string is one xml record. Then, I use Java SAX
parser to parse it. It turns out that it performs very slowly on dividing and
parsing. Is there any better way? like parsing all records in this file in one
time?
Tha |
|
c**t 发帖数: 2744 | 34 http://www.devx.com/xml/Article/16921/0/page/1
The XML parser world is a dynamic one. As standards change, the parsers
change as well--XML parsers are becoming more sophisticated. For most
programming projects, the parser, at minimum, must support DOM Level 2, SAX
2, XSLT, and Namespaces. All the parsers discussed here provide these
capabilities; however, there are distinct differences in performance,
reliability, and conformance to standards. In this article, I'll compare the
latest parsers fro |
|
c*****t 发帖数: 1879 | 35 SAX = a lexer that parse an XML document into tokens and generate
events on the token recieved. As you can imagine, there will
be continuous streams of events. Thus, some call SAX stream
or SAX event driven etc.
The SAX engine provided by JDK sucks. No hooks for custom entities
unless the XML document explicitly contains the DTD spec.
DOM = a generated tree of objects (think of DOM tree for html elements
in web browser, only this is for all XML documents).
Crimson/Xerc |
|
I*******o 发帖数: 53 | 36 需求是这样的:
input: XML data, PDF template (generated by Designer)
output: PDF file (template filled up by XML data)
现在的solution是XPAAJ,只要一个method call就可以。
但是问题是,当xml data很大,并且有image data时候,
生成的PDF没有data,跟template没填东西一样。
考虑中的solutions:
1。用iText之类的package。不过不知道iText是否支持这种template?
2。研究一下XPAAJ是不是有什么tricks
说明:adobe现在已经不支持XPAAJ了,download都没了。
现在他们想推的LiveCycle,太贵,不能考虑。
各位有类似经验可以share一下么?谢谢! |
|
g*****g 发帖数: 34805 | 37 No, I think I have WTP, that's it.
When you create an XML, you have the optino to
create xml from dtd or xml schema |
|
i**p 发帖数: 902 | 38 My program needs the 3rd party jar file abc.jar which is located in /a/b/c/d
. Here is my build.xml but I got a build error "Problem: failed to create
task or type classpath". Any suggestion?
.....
|
|
i**p 发帖数: 902 | 39 BUILD FAILED. Line 11 is
build.xml:11: Problem: failed to create task or type classpath
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any / declarations have taken place.
v*******8 发帖数: 20 | 40 how to insert a node into an existing xml file? - besides creating dom then
writing out to file?
the xml file is very long (several k lines), and I want to keep the comments
in original xml file. The node needs to be insert right before the end tag
of the root
thanks | |
|
c*********e 发帖数: 16335 | 41 java web services怎么把xml,json数据解析?用哪些插件?
1)怎么把xml,json格式的数据解析成数据,然后存进数据库?
2)怎么把数据库里的数据拼装成xml,json格式的数据,然后发送给用戶?
记得用c# web services的时候,用过第三方软件,直接在poco和json之间转换,不用
我自己写解析code. |
|
c*******9 发帖数: 6411 | 42 I use the following code to write the xml string in UTF-8, the code does not
work in
Japanese SIJIS environment. The code that processed xml in UTF-8 format can
not
process the xml string written out this way.
DOMImplementation* impl =
DOMImplementationRegistry::getDOMImplementation(X(""));
m_theSerializer = ((DOMImplementationLS*)impl)->createDOMWriter();
string namespaceURI = "http://www.w3.org/2001/XMLSchema-instance";
string rootElement = "DMPrintRoot";
m_doc = impl->createDocume |
|
f********f 发帖数: 475 | 43 读入一个XML文件, 其中一个element的Text value需要用从GUI的一个Textbox里的值替
代.
比如:
....
BNR
.....
"BNR"应该被textbox的值取代.
我要读如这个xml文件到一个byte[]里, 替代DeviceName的值, 得到一个新的byte[].
怎么做简单呢?
我是C#和XML的新手, 请大家帮忙. 谢谢! |
|
f********f 发帖数: 475 | 44 谢谢! 解决了以上的问题.
我的code是这样的:
XmlDocument doc = new XmlDocument();
doc.Load("Abc.xml");
....
修改xml file里的某些值
....
byte[] xmlCommand = Encoding.ASCII.GetBytes(doc.OuterXml);
现在新问题出来了: xmlCommand里面把原来xml file里的换行/n, 回车/r和tab(/t)都
丢掉了,我怎么能保留原来的格式呢?
谢谢! |
|
w*s 发帖数: 7227 | 45 【 以下文字转载自 Linux 讨论区 】
发信人: wds (净洗前尘,从头再来), 信区: Linux
标 题: 有没有简化的xml?
发信站: BBS 未名空间站 (Tue Mar 13 20:40:28 2012, 美东)
我们一些config可以放在plain text, or xml file里面。
plain text file需要parse,
xml对我们来说又太大太多太复杂了点,
有没有折中的? |
|
z****e 发帖数: 54598 | 46 现在光脚本已经不够简单了
我看好xml
这种成熟平台,要做成xml很容易的
只要各种协议成熟,现在主要是web协议还不够成熟
还有各种问题要处理,但是cloud上一些大的web应用server
都已经xml化了,甚至更进一步
不需要编程了,拖拖拽拽就行了 |
|
J*****n 发帖数: 4859 | 47 I have class A : B.
A ojb = new A;
I already have A.xml, which is the serializer of obj.
How can I read A.xml and cast down it into its father class B. Assume I don'
t know A.xml contains class A. (Because B may have other derived class other
than A).
Thanks. |
|
d****n 发帖数: 1637 | 48 http://play.golang.org/p/vS409gRveG
开20个worker,多用几个 电脑,当你 存xml时候注意一下duplicates就搞定了。指定
比你的 python快
// In this example we'll look at how to implement
// a _worker pool_ using goroutines and channels.
package main
import "fmt"
import "net/http"
import "log"
import "io/ioutil"
// Here's the worker, of which we'll run several
// concurrent instances. These workers will receive
// work on the `jobs` channel and send the corresponding
// results on `results`. We'll sleep a second per job to
// simulate... 阅读全帖 |
|
s*****y 发帖数: 3 | 49 我用libxml2 parser.h 中的 xmlReadFile 打开一个xml file
xmlReadFile 的 parameter -> const char *URL 不支持 wchar,所以当xml file的
path 是 Unicode时, 需要用WideCharToMultiByte转化。 但是如果Unicode的path有
非英文字符时,这也方法就行不通了。
有没有什么方法可用libxml2 的api,open unicode path的 xml file呢?
谢谢! |
|
a****u 发帖数: 1537 | 50 看到一条招聘广告,里面有一条
Ability to design RESTful services and integrate with other data providers.
Know when to use JSON or XML.
求大侠指教,JSON or XML应用场景。个人理解XML对格式要求更严。 |
|