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

I THINK I know what you are trying to ask, but maybe you could provide us with a concrete example of before and after so that we can better get our monk-minds around the problem.

C-.

  • Comment on Re: How do I replace brackets with XML tags?

Replies are listed 'Best First'.
Re: Re: How do I replace brackets with XML tags?
by Anonymous Monk on Aug 02, 2001 at 19:55 UTC
    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

      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.