in reply to Re: How do I replace brackets with XML tags?
in thread How do I replace brackets with XML tags?

Before:
@interface { i : in(1); o : out(1); }
After:
<interface> <in name="i" width="1"/> <out name="o" width="1"/> </interface>
Thanks.

Edit: chipmunk 2001-08-02

Replies are listed 'Best First'.
Re: Re: How do I replace brackets with XML tags?
by Anonymous Monk on Aug 02, 2001 at 20:13 UTC
    I screwed up on my reply. Here's another try,
    leaving off the opening on the xml tags so it's
    not interpreted as html:
    Before:

    @interface {
    i : in(1);
    o : out(1);
    }

    After:

    interface>
    in name="i" width="1"
    out name="o" width="1"/
    /interface>

    The main trick is changing that closing bracket,
    since there are other closing brackets that have
    different names.
    Thanks.