Forum Discussion
Hi Sowmya,
it should be possible, but I haven´t seen a sample for this one yet. You can use a Method with an AML "get" query to get the "content" property of your tp_block item. With xpath you can then look for specific elements inside content.
I made some tests for this one in the past to get content of text elements for translating the content into another language. I don´t have a ready to use sample, cause I mainly played around with an xpath tester.
One thing that I remember: Sometimes the content property does not contain the content in a valid xml format. When your tp_block element for example just contains sections, there will no be any root element. So instead of making an xpath query on the content itself, better use the full tp_block item.
Angela
Thanks for the info i will try to figure it out for more.