XML Tools

Discussion of Common Lisp

XML Tools

Postby Indecipherable » Sat Jun 04, 2011 5:27 am

If I wanted to write a Markup language interpreter in Common Lisp, what tools would I need?
Don't take the FUN out of DEFUN !
User avatar
Indecipherable
 
Posts: 47
Joined: Fri Jun 03, 2011 5:30 am
Location: Behind you.

Re: XML Tools

Postby Ramarren » Sat Jun 04, 2011 8:39 am

What exactly is a "Markup language interpreter"? You can see a list of XML tools on Cliki. I believe the best parser is CXML and it's extensions.
Ramarren
 
Posts: 613
Joined: Sun Jun 29, 2008 4:02 am
Location: Warsaw, Poland

Re: XML Tools

Postby Indecipherable » Sat Jun 04, 2011 8:48 am

Thank you.
Don't take the FUN out of DEFUN !
User avatar
Indecipherable
 
Posts: 47
Joined: Fri Jun 03, 2011 5:30 am
Location: Behind you.

Re: XML Tools

Postby Indecipherable » Sat Jul 02, 2011 7:00 am

Is there a good online tutorial explaining the basics of writing an interpreter for an XML-Based language (writing an XML parser(?)) ? :?:
Don't take the FUN out of DEFUN !
User avatar
Indecipherable
 
Posts: 47
Joined: Fri Jun 03, 2011 5:30 am
Location: Behind you.

Re: XML Tools

Postby nuntius » Sat Jul 02, 2011 11:43 pm

XML is surprisingly complicated. You don't want to undertake writing a new parser without good reason. The "lightweight" parsers (e.g. stuff like tinyxml or rapidxml) don't support large subsets of the spec (e.g. entities and validation).

Here's a fairly good intro.
http://www.w3schools.com/xml/default.asp
User avatar
nuntius
 
Posts: 498
Joined: Sat Aug 09, 2008 10:44 am
Location: Burlington, MA

Re: XML Tools

Postby Indecipherable » Thu Jul 07, 2011 2:35 am

So do you think writing an AIML parser will be quite difficult?
Don't take the FUN out of DEFUN !
User avatar
Indecipherable
 
Posts: 47
Joined: Fri Jun 03, 2011 5:30 am
Location: Behind you.

Re: XML Tools

Postby marcoxa » Thu Jul 07, 2011 2:30 pm

Indecipherable wrote:So do you think writing an AIML parser will be quite difficult?


Not really if you use CXML or CL-XML. With CXML you are advised to use KLACKS which is a SAX-like parser.

--
Marco
Marco Antoniotti
marcoxa
 
Posts: 69
Joined: Thu Aug 14, 2008 6:31 pm


Return to Common Lisp

Who is online

Users browsing this forum: Bing [Bot] and 3 guests

cron