由买买提看人间百态

topics

全部话题 - 话题: xml
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
w*r
发帖数: 2421
1
来自主题: Java版 - [转载] a question on XML parser
okey, your xml file is not well formated for parsing. My suggestion is
that you can write a class to get rid of the all document head at the first
place and put all record well-formated [Cin one file(or stream).
Then what you need to do is just write a xslt to transform the
xml to whatever the format you want and parse it into your application.
z****g
发帖数: 2497
2
来自主题: Java版 - [转载] a question on XML parser
重新读一下SAX parser的sample code.
你的理解是错误的。
SAX parser是循序解读每个element.
另外, 你的xml doc好像有些问题
XML Declaration, DTD怎么有那么多个? 这个如同html的header, 只
应该有一个啊。
w*r
发帖数: 2421
3
来自主题: Java版 - [转载] a question on XML parser
man, you got no other choice, your xml doc has multiple xml declaration
header,
what can you expect from the parser ? magic? NO! all you can do is to
design your own 'feeder' to the parser, skip the declare part and feed the
record to the parser. Both 1 and 2 will work, it just depends how big your
file is, if its millions millions record, i suggest 2 if small number of
records, 1 is okey.

And, my
c*****s
发帖数: 214
4
来自主题: Java版 - CookSwt: Xml to Swt preview
Well, they are doing the same thing so one of them can not be more POWERFUL
than the other. The difference is kind of syntax sugar.
$ expression is used in Velocity, ANT and all jelly syntax in the
same way even the implementations are different. I've been using velocity for
more than 3 years, and using jelly since it was born two years ago. I would
prefer it.
Jelly is so generic that people can use it to do ANYTHING related to XML.
Actually in the two companies I worked in China and US, all xml
n*w
发帖数: 3393
5
thanks, it seems a tool generate the xml code from java source? Any tools
generate the mapping xml and java class from database schema(sql)?
c******e
发帖数: 139
6
来自主题: Java版 - still web.xml question
in a html,
action="http://localhost:8080/servlet/servletclient"
according to this action,is the following web.xml right? if the class is
C:\apache-tomcat-5.5.23\webapps\ROOT\WEB-INF\classes\servletclient
web.xml
.
.
.

MyServlet
servletclient


MyServlet
/servlet/servletclient

.
.
c******e
发帖数: 139
7
来自主题: Java版 - still web.xml question
还是不对。
如果放到cherokee package 下,web.xml是不是应该是

MyServlet
ckerokee.servletclient


MyServlet
/servlet/servletclient

如果直接放在class package 里,web.xml是不是

MyServlet
servletclient

w*r
发帖数: 2421
8
来自主题: Java版 - xml to PDF的package
这个东西我写过,用itext, 自己设计一个template, 数据和chart从class到一个XML
file, 然后自己写一个parser把XML用itext生成pdf.. 不是很难,基本上属于四天dev
两天test的活儿
b******y
发帖数: 1684
9
来自主题: Java版 - xml to PDF的package
in our application, template is already in file format
and the xml generation part is also done
how difficult is it to use iText to read the XML parsing result
and render it in the template?
thanks!

dev
t*******e
发帖数: 684
10
试试用IDE(eclipse, netbeans之类的)格式化一下你的XML output file. 是否加回车
符是由你使用的XML parser决定的。
c******n
发帖数: 4965
11
I don't think so
if you check the following simple code
///////////////////////
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class TTT {
private String p ;
public String getP() { return p;}
public void setP(String p) { this.p = p;}

public void fun() {
System.out.println("value" + p);
}

public static void main(String args[]) {

ApplicationContext ctx ... 阅读全帖
c*********e
发帖数: 16335
12
web.xml里面的servlet tag可以在创建servlet的时候自动生成。其实自己手工修改web
.xml也很方便啊。
w**z
发帖数: 8232
13
You can try to catch java.lang.OutOfMemoryError, but it might be too late at
that time and JVM is dying.
http://stackoverflow.com/questions/2679330/catching-java-lang-o
Before you load xml, can you check the size of the xml file?
c*********e
发帖数: 16335
14
en,json其实parse起来比xml容易。xml parse,自己手写的话,要搞什么childnode,烦
死人了。
g*****n
发帖数: 15
15
【 以下文字转载自 Programming 讨论区 】
发信人: guanjun (guanjun), 信区: Programming
标 题: 如何快速处理大量网上xml文件?
发信站: BBS 未名空间站 (Mon Aug 24 20:33:14 2015, 美东)
小弟新手,恳请各位大侠指点。万分感激!
只用单个电脑, 不用hadoop/spark这些框架
网上有大约60万个xml文件,比如下面是一个:
http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pub
需要解析每个文件,结果然后存在电脑上。现在的程序每次都要访问网上的文件,大约
耗时3天才能完成。
有没有更加高效的方法,快速完成?
w*s
发帖数: 7227
16
来自主题: Linux版 - 有没有简化的xml?
我们一些config可以放在plain text, or xml file里面。
plain text file需要parse,
xml对我们来说又太大太多太复杂了点,
有没有折中的?
b******y
发帖数: 139
17
using System;
using System.IO;
using System.Xml;
public class aXmlRead
{
public static void Main()
{
XmlDocument doc = new XmlDocument();
XmlTextReader reader = new XmlTextReader("newbooks.xml");
reader.Read();

doc.Load(reader); // error happens in run time
doc.Save(Console.Out);
}
}
mw
发帖数: 525
18
来自主题: Programming版 - which XML lib you guys are using
Hi, I need some XML functions for my project. currently i am using LibXML2,
which is a C implementation.
Do you guys know any popular, buf-free(more or less) C++ implemented XML lib?
thanks a lot in advance!
p*****o
发帖数: 543
19
来自主题: Programming版 - 请教如何VB来读这个XML文件!
如何把这里的信息读到TXT里面去啊。。。
文件A.XML如下:

xsi="http://www.w3.org/2001/XMLSchema-instance">


10001
10002



2001
3
l*****n
发帖数: 1679
20
请问XML中如何设置“锚点”,敬请赐code,多谢!!!
html里是用 #aa,aa,XML用什么啊?
c*******r
发帖数: 3289
21
【 以下文字转载自 Database 讨论区 】
发信人: castalker (遊民), 信区: Database
标 题: 有没有对xml文件进行类似sql直观查询的工具?
发信站: BBS 未名空间站 (Mon Jan 14 16:03:08 2013, 美东)
例如附件中的xml,我只需要查找 mediaItemID="5",就只给我显示所需的VideoClip记
录。有没有这样的软件?
d*****t
发帖数: 7903
22
恩,这个也不错,看来wget还是挺灵活的。
我本来是意思是:一个数据门户网站,不知内部文件结构,但要求下载网站上所有*.
xml文件,有一个算一个。这个问题已经解决了,全面贴了个例子。进一步,如何仅下
载'a*.xml'一类的文件貌似没有解决。前面大神说过这个功能不可能实现?
c*******9
发帖数: 9032
23
是发明xml的人蠢还是用xml的人蠢?
n****1
发帖数: 1136
24
来自主题: Programming版 - json能取代xml么??????
理论上不能完全取代, 因为xml是fully extensible, JSON不是。 所以xml的格式是
future proof, 能够无限扩展。 xmpp就是典型代表, 虽然最终被google抛弃了。
实际中感觉80%的情况可以取代, 因为大多应用不需要fully extensible
h**i
发帖数: 712
25
来自主题: Programming版 - 什么语言处理xml最方便?
一个项目需要保存配置信息,原来是二进制和json混合,现在想改成xml,在c,c++,java
,javascript,python里哪一个对xml最友好?如果文件结构变动,要求parser的接口不
变。
d****n
发帖数: 1637
26
来自主题: Programming版 - 如何快速处理大量网上xml文件?
你抛出了个XML parser干毛?你知道楼主要存啥啊?
再说你这个xml parser+thread,看看你的破玩意一共多少行?再把编译配置写好,不
然累死
z****e
发帖数: 54598
27
来自主题: Programming版 - 如何快速处理大量网上xml文件?

你以为java里面xml的部分不是build in的?
http不是build in的?
java.xml
java.net
都是标准pkg好伐?
不用安装你写个p啊
N********n
发帖数: 8363
28
来自主题: Programming版 - 如何快速处理大量网上xml文件?

下载和PARSE都在一个THREAD里面。可以一次开20个THREAD并行,把所有XML URL放
在一个POOL里面。每次每个THREAD去POOL里抓200个URL来处理,处理完再去抓200
直到全做完。这样一个THREAD在ASYNC等待时其他拿到XML的THREAD可以PARSE。基
本上就是模拟SERVER端用ASYNC提高MULTI-REQUEST执行效率。
z****e
发帖数: 54598
29
来自主题: Programming版 - 有人熟悉xml么?
两种格式


都算是complete的
这个跟html不是一样的么?
xml就是更加严格的html
html乱写都行,xml不行
c******n
发帖数: 16666
30
先json再xml
我感觉json会比xml小一丢丢
f*****t
发帖数: 895
31
来自主题: Programming版 - 一个关于XML文件parser的问题
谢谢!
有人推荐Mini-XML
libxml和Mini-XML相比,哪个更容易使用?
j***n
发帖数: 301
32
xmlDoc=parser.parseFromString(url,"text/xml");这行错了,你的url不可能是XML
文档
A*******n
发帖数: 625
33
来自主题: Software版 - XML for Analysis parser:
who knows what the below error is?
XML for Analysis parser: The driver property was not recognized.
it seems about parser excel to xml issue.
Thanks
h******s
发帖数: 176
34
☆─────────────────────────────────────☆
qqzj (小车车) 于 (Sat Apr 18 02:54:03 2009) 提到:
大概是我人笨。我怎么感觉Tex和XML(even html) 区别不大呢?不就都是markup lang
uage吗?有什么特点区别这些语言呢?有没有可能一方把另外一方给“统一”了?我不
懂,就是问问。
☆─────────────────────────────────────☆
cockroach (冬冬) 于 (Sat Apr 18 03:52:17 2009) 提到:
tex本身就是一个排版的程序
html需要外部浏览器的渲染
xml的排版功能需要css协助

lang
☆─────────────────────────────────────☆
qqzj (小车车) 于 (Sat Apr 18 12:24:42 2009) 提到:
这些好像都不是fundamental的区别吧?
☆─────────────────────────────────────☆
cockroac
h**********0
发帖数: 1453
35
ExcelUMI.xml
和setup.xml
不大,加起来不到20K,谁好心给我一下
多谢多谢
g******r
发帖数: 347
36
问个技术问题,500个xml文件Incorporate into一个excel文件:
我有500个xml文件,我需要把这个500个文件按照他们的名字的顺序,加入一个excel文
件。不知道怎么处理,谢谢大家
s****y
发帖数: 2
37
来自主题: XML版 - XML

" target="_blank" class="a2">http://www.xml.org.cn/
网上的一个中文XML站点,里面有很多介绍性的文章!
l***h
发帖数: 139
38
来自主题: XML版 - What is XML?
If you're at all acquainted with HTML (HyperText Markup Language) or
SGML (Standard Generalized Markup Language), XML (eXtensible Markup
Language) will look pretty familiar to you. It's a markup language for
presenting documents on the Web that relies on tags like HTML does.
The simple syntax makes it easy to process by machine while remaining
understandable to people. But where HTML uses tags to describe a
document's appearance -- like < i > text < /i > -- XML tags describe
the data itself. An
w*****s
发帖数: 122
39
来自主题: XML版 - So XML Is Just Like SGML?
No. Well, yes, sort of. XML is defined as an application profile of SGML.
SGML is the Standard Generalized Markup Language defined by ISO 8879.
SGML has been the standard, vendor-independent way to maintain
repositories of structured documentation for more than a decade, but it is not
well suited to serving documents over the web (for a number of technical
reasons beyond the scope of this article). Defining XML as an application
w*****s
发帖数: 122
40
来自主题: XML版 - Why XML?
In order to appreciate XML, it is important to understand why it was created.
XML was created so that richly structured documents could be used over the
web. The only viable alternatives, HTML and SGML, are not practical for this
purpose.
HTML, as we've already discussed, comes bound with a set of semantics and
does not provide arbitrary structure.
SGML provides arbitrary structure, but is too difficult to implement just for
l***h
发帖数: 139
41
来自主题: XML版 - Experimenting with XML
General Motors is looking to XML not only to allow it to put data from
its legacy systems into Web format but also to make that data more
accessible in the future. "We're trying to create an environment where
applications can be built very quickly and be extended to wherever we
need them much faster than we've been able to do it in the past," says
Walsh. "We want to be able to build systems in such a way that they
are no longer an impediment moving forward."
GM is experimenting with XML pilot pr
l***h
发帖数: 139
42
来自主题: XML版 - Three key areas of XML
One of XML's primary uses is as the "glue" to integrate applications,
as GM is doing, says Joshua Walker, an analyst at Forrester Research
Inc. in Cambridge, Mass. This is true not only for individual
companies but also for entire industries. Wall Street, for example, is
looking to XML as a way to simplify electronic communication among
brokerage houses, banks, and other financial institutions.
Brokerage houses currently use a confusing collection of standards for
real-time electronic stock trad
w*****s
发帖数: 122
43
11月5日
ConneXt通过XML加快消费者信息系统的应用进程。
ConneXt有限公司是西雅图的一家软件公司。它主要的发展方向是为器材市场提供先进
的报价,客户端服务解决方案。ConneXt宣布它的ConsumerLinX解决方案在各种应用编
程界面上支持XML。
w**********k
发帖数: 1135
44
来自主题: XML版 - Database and XML

XML描述的是数据本身,不象HTML本身就是数据。
以XML描述的数据,可以很方便在各个平台、各个数据库间进行交换。
如果把全世界的WWW想象成一个数据库,则可以方便的分析一个站点
提供的数据。
m**i
发帖数: 89
45
来自主题: XML版 - 从哪里开始学习XML?

在XML中,Schema是特制的东西。现在处于草稿阶段,无论IE还是
Netscape都不支持。Netscape 4.6对XML做有限支持,因为它自己还
没有CSS或XSL引擎。一般喜欢Netscape的,都用Mozilla 5.0来看。
j*******r
发帖数: 201
46
来自主题: XML版 - 从哪里开始学习XML?

FAINT!
如果是在IE4下,浏览器本身就有MSXML对象支持XML的解析和分析,修改等,
在IE5下,简直就是控制自如了。
java版本的XML PARSER有很多免费的,比如IBM,SUN了,
我现在就用的是IBM的,感觉还不错了。
网址我忘了,谁想要就写信到我的信箱了。
c*******r
发帖数: 5
47

xsl can can a xml from one DTD to another DTD.
xsl is a certain kind of xml too.
k****o
发帖数: 58
48
来自主题: XML版 - XML and DHTML?
I learned about DHTML(Dynamic HTML --> HTML4.0 + CSS + Jscript) two years
ago, but haven't get chance to learn XML. From some introduction
of XML, it seems to me that they are quite similiar. Anyone can
tell me what's their relationship?
E*****s
发帖数: 19
49
我现在正在学Red Hat, 又对XML 感兴趣,有没有二者
成功整合的方案?
XML 在Linux 平台上发展得怎样?
j*******r
发帖数: 201
50
Information Architects 和Red Hat联合努力推动Linux上基于XML的内容动态集散解决方案的产生。
Information Architects(iA http://www.ia.com )是一家专门提供基于XML的内容动态集散解决方案的公司。它今天正式宣布加入Red Hat的Independent Software Vendor Partner(独立软件提供上合作伙伴)计划,共同推动Linux上的电子商务。
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)