-
parsing XML-like field
I have a text field in my source that looks something like:
"<f1>iVal1</f1><f2>iVal2</f2><f3>sVal3</f3>"
I'm parsing the data (iVal1, iVal2 and sVal3) and putting them in fields f1, f2 and f3.
The number of fields and sequence is constant so I can parse the string using a js 'split' on "><" and then trimming off the undesired from the resultant array members.
Is there a better (more elegant and/or efficient) way to do this?
Thanks
-
Can't think of better solution right now.
Regards,
Sven
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules