Go Back   Armenian Knowledge Base > Entertainment > Literary nook > TWARM

Reply
 
Thread Tools

An XML Parser Query
Old 01.09.2004, 08:03   #1
★★★★★★★★★★★★★
 
Hrach_Techie's Avatar
 
Join Date: 08 2004
Location: London, UK
Age: 46
Posts: 16,531
Rep Power: 8
Default An XML Parser Query

Hi ...

I'm looking for an XML parser that manage file entities, i.e., will take in code from the referenced file and put it in the main XML file when parsing so that my XSLT converter doesn't throw up any errors.

At the moment, as I understand it, XSLT converters do not recognize file entities and the converter I'm using at the moment, jEdit, throws up errors refusing to convert to .fo (XML Formatted Object file).

Any help would be much appreciated.
Thanks ...
__________________
Мадмазель, Медам, Месье! "Глория" меняет курс и направляется в Кейптаун! Кому это не нравится будет расстрелян на месте. (с)

http://texneg.livejournal.com

Old 01.09.2004, 09:48   #2
Магистр
 
svoy's Avatar
 
Join Date: 11 2003
Location: heart of europe
Age: 46
Posts: 718
Rep Power: 5
Default

HI as i understood you need an XML parser to parse XML have a look here
http://www.hta-be.bfh.ch/~boillat/sc...x/SAXTree.java
and here
http://www.hta-be.bfh.ch/~boillat/sc...m/DOMTree.java
It is a 2 XML parser first SAX (Simple API for XML) and second DOM(Document Object Model)

I would suggest sax parser it is easier to understand and edit. You need to change something there because it recognise all elements in XML and create xml tree with priorities.
Last week as uni project we made a simple mail2xml and xml2mail programm using Javacc and edited Saxparser.

So tell more info may be I could help.
__________________
http://imagegen.last.fm/Geldropdown-...ks/3/svoy1.gif
If you stop, you die! Doc Miles, Crank

Old 01.09.2004, 10:42   #3
★★★★★★★★★★★★★
 
Hrach_Techie's Avatar
 
Join Date: 08 2004
Location: London, UK
Age: 46
Posts: 16,531
Rep Power: 8
Default

Hey, svoy!

I'll have a crack at it and let you know if it's useful...

Thanks for the pointer!!!!

Quote:
Originally Posted by svoy
HI as i understood you need an XML parser to parse XML have a look here
http://www.hta-be.bfh.ch/~boillat/sc...x/SAXTree.java
and here
http://www.hta-be.bfh.ch/~boillat/sc...m/DOMTree.java
It is a 2 XML parser first SAX (Simple API for XML) and second DOM(Document Object Model)

I would suggest sax parser it is easier to understand and edit. You need to change something there because it recognise all elements in XML and create xml tree with priorities.
Last week as uni project we made a simple mail2xml and xml2mail programm using Javacc and edited Saxparser.

So tell more info may be I could help.
__________________
Мадмазель, Медам, Месье! "Глория" меняет курс и направляется в Кейптаун! Кому это не нравится будет расстрелян на месте. (с)

http://texneg.livejournal.com

Old 01.09.2004, 10:50   #4
Магистр
 
svoy's Avatar
 
Join Date: 11 2003
Location: heart of europe
Age: 46
Posts: 718
Rep Power: 5
Default

U r welcome, 200 dram!
__________________
http://imagegen.last.fm/Geldropdown-...ks/3/svoy1.gif
If you stop, you die! Doc Miles, Crank
Reply




Реклама:
реклама
Buy text link .

All times are GMT. The time now is 18:12.
Top

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.