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
- SmilingEel5 years agoIdeator I
Thanks for the info i will try to figure it out for more.
- SowmyaK985 years agoIdeator III
Hi Angela,
It would be great if you can share piece of code using XPath and querying Content elements. Sample piece of code.
So that I also can try from my end and explore more on that.
Thanks for your response.
Thanks,
Sowmya
- SunilReddy5 years agoCreator II
Hi Sowmya,
We can query any element inside content property through Xpath. We have already implemented in of our solution
- angela5 years agoCatalyst II
Hi Sowmya,
are you an Aras partner / consultant or end user?