Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parse HTML/XML name/value pairs

Status
Not open for further replies.

tlhawkins

Programmer
Dec 28, 2000
797
US

Hey all,

I'm looking for a good method of parsing tag based name/value pairs. the input will be something like:

<tagname name="value" Param2=20>

both of those instances are easy to grab with regexp from vbscript.dll

but when it starts getting things like
<tagname param1 = 'this "dog" is hard to find'>

then my regexp pattern gets confused.
Is there something pre-made to do this? Or anyone know of how to do it with Delphi string functions.

I'm new to Delphi so I'm probably overlooking something obvious.

THANKS.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top