473,466 Members | 1,388 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

get value of attribute in html tag

7 New Member
for example,

if this is the tag,

<httpSample t="527" lt="527" ts="1306146411999" s="true" lb="HTTP Request" rc="200" rm="OK" tn="Thread Group 1-1" dt="text" by="411" />


i need the value of lt alone to be displayed. i couldnt get it right through regular expression. Hope you can provide me the code. Also, if possible, could you please tell the logic of how to find the maximum and minimum of the lt value if some five or six tags are provided..

Thanks in advance.
May 23 '11 #1
1 2380
miller
1,089 Recognized Expert Top Contributor
If this is actually XML, then I suggest you use cpan XML::Twig.

If this is html (httpSample is not a valid tag), then use cpan HTML::TreeBuilder::LibXML.

- Miller
May 23 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: brian.ackermann | last post by:
Hi, Can someone tell me what I'm doing wrong here? It makes sense to me, but fails to actually execute the code. I can't find anything on google, but maybe my search criteria are off. ...
1
by: Mohammed Shafiulla Khadri | last post by:
hi, I have the following piece of html code in a page <table width="90%" border="0" align="left" cellpadding="0" cellspacing="0"> <tr> <td width="26%">&nbsp;&nbsp;&nbsp;day</td>
2
by: charles-brewster | last post by:
I'm trying to write a simple JavaScript function which will use a button to copy table cell data into a form input text box as the "value" attribute. The following is intended to test the...
2
by: charles-brewster | last post by:
I have progressed the copytext function test page a little since my original post here in the small hours this morning. It now opens a debugging window so I can try to figure out what it is or...
4
by: Matt Kruse | last post by:
According to standards, if an option is selected and it has no VALUE attribute, the contents of the option tag is to be submitted. So: <select name="sel"> <option selected>Value</option>...
1
by: Nathan Sokalski | last post by:
I have a page that I created with ASP.NET which contains a RadioButtonList. This obviously shows up as input tags in the generated page. When I was looking at the page with the free Internet...
1
by: otiose3 | last post by:
I've been ploughing through the archives here, but I can't seem to find a solution for my situation... Essentially, I want to run the JQuery script that is in the "value" attribute of my <option>...
0
by: Nathan Sokalski | last post by:
In the RadioButton and CheckBox controls, there is no Value attribute. The html <inputtag has a value attribute, which is used by both type="radio" and type="checkbox". The RadioButtonList and...
1
by: phpmel | last post by:
Hi guys, I wanted to set the value of a textbox to be the username of whoever is logged into my application. In the login page, a session variable username was set to be the username of whoever...
0
by: petrucino | last post by:
hi all..sorry if my english so bad.. i've learn about parsing..but it was not enough..i've make a code to getting value of attribute from "http://www.codeproject.com/KB/cs/htmlparser.aspx" and...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.