Welcome Guest Search | Active Topics | Sign In | Register

Can I get HTML Element attributes? Options
aSimpleUser
Posted: Monday, April 8, 2013 6:53:27 AM
Rank: Newbie
Groups: Member

Joined: 4/8/2013
Posts: 1
Hi,
I'm trying your EO Pdf product and I must say it's very impressive, good work!
I've found all of my "must have" feature... the only thing I can't figure out how to achieve is reading attributes from an HTMLElement object.
Is there a way to do that?

I.E.:

result = EO.Pdf.HtmlToPdf.ConvertUrl("...")
myElement = result.HtmlDocument.GetElementsById("myId")
myElement.getAttribute("data-info") <= this is not a real method, I don't know how to get the "data-info" html attribute value.

Tanks
eo_support
Posted: Monday, April 8, 2013 10:01:33 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

You won't be able to get an arbitrary attributes. You can only get a few attributes from several properties exposed by the HtmlElement class, such as ID, ClassName and InnerText.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.