Peter Zotov wrote:
> Quoting "Arun Kumar" <arunkumar / innovaturelabs.com>:
>
>> Thanks. Can u please give me details of it.
> It is described nicely in Wikipedia:
> http://en.wikipedia.org/wiki/Finite_state_machine
>
> As a clue, I can recommend you define following states: "text",
> "opening tag", "tag attribute", "tag attribute value", "closing tag".
> E. g. when you are in "text" state and get "<" symbol at input
> sequence, you change state to "opening tag" or "closing tag"...
> I still have one question: why you don't use REXML?
Hi,
The problem is that my boss donot want me to use any libraries to parse
xml. He also said to use regular expressions to extract the contents of
an xml tag. Can u please tell me how to do it. I'll be really greatfull.
Regards
Arun Kumar
--
Posted via http://www.ruby-forum.com/.