Unfortunately I don't have any control over the client. The problem is that the client is intentionally sending the semicolon as a delimiter (its written in C#). The other issue is the xml string could be a very large xml string with many semicolons. Ideally, I'd be able to simply replace the semicolons with pipes. I'm not really looking to do name value pairs since I need to do further processing of the XML before I handled the data that is delimited with semicolons. Any other advise? Here is another example if this is helpful:
# this line represents the xml that I would receive from a client. $xmlstring = '<listofitems> <item> <itemid>1234</itemid> <itemname>genericname</itemname> <tablefield>1234;id</tablefield> </item> <item> <itemid>1235></itemid> <itemname>genericname2</itemname> <tablefield>1235;id</tablefield> <tablefield>1;specialtiem</tablefield> </item> </listofitems>';
In my program I would then parse the xml data into other variables. The problem is that when I attempt to parse the data the semicolon in the tablefield xml tag screws it up. TIA.

In reply to Re^4: Semicolons in webforms by dmaranan
in thread Semicolons in webforms by dmaranan

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.