Forum Moderators: coopster & phranque

Message Too Old, No Replies

turn a string into a well form XML format

         

msgsbox

8:06 pm on Mar 9, 2007 (gmt 0)

10+ Year Member



Is there any module (function) can convert string into a well-formed XML format?

For example:

string: <t1>need help</t1><t2>thank you</t2>

XML:
<t1>
need help
</t1>
<t2>
thank you
</t2>

phranque

1:03 am on Mar 10, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



you might want to look at a tokenizer package such as HTML::Content::HTMLTokenizer which can be found on cpan.org [search.cpan.org]