Skip to Content.
Sympa Menu

maude-help - [Maude-help] xml parsing

maude-help AT lists.cs.illinois.edu

Subject: Maude-help mailing list

List archive

[Maude-help] xml parsing


Chronological Thread 
  • From: Scott Christley <schristley AT mac.com>
  • To: maude-help AT cs.uiuc.edu
  • Subject: [Maude-help] xml parsing
  • Date: Tue, 16 Apr 2013 15:33:20 -0500
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/maude-help/>
  • List-id: <maude-help.cs.uiuc.edu>

Hello,

I want my Maude (v2.3) program to be able to parse and manipulate XML. I can
create sorts and operators such as this:

sort xmlValue .
sort xmlKey .
op <key> _ </key> : xmlValue -> xmlKey .

and it works fine, but the issue is that whitespace is required between the
tokens, so this can be parsed:

<key> name </key>

but this cannot be parsed:

<key>name</key>

Is there a way to allow this? For example, it seems other symbols like
parentheses do not require whitespace.

thanks
Scott






Archive powered by MHonArc 2.6.16.

Top of Page