Skip to main content
Cadet | Tier 2
August 23, 2022
Question

I have html variable which contains 3 company detail and the requirement is company data can be extrac using only string operation

  • August 23, 2022
  • 5 replies
  • 119 views
I have html variable which contains 3 company detail and the requirement is company data can be extrac using only string operation

    5 replies

    Ashwin A.K
    Navigator | Tier 3
    August 24, 2022

    Hi @Mitte Sab​ ,

     

    Would you be so kind as to provide few screenshots and an example of the expected output so that we will be in a better position to assist you?

     

    Kind Regards,

    Ashwin A.K

     

    Blogs at TheCodingTheory - https://www.thecodingtheory.com
    M 5041Author
    Cadet | Tier 2
    August 24, 2022

     and need extract claim id, claim type, companies name, company contact and company country

    IMG_20220824_085921

    Navigator | Tier 3
    August 24, 2022

    @Mitte Sab​ 

     

    I think you can serialize this to XML and get the single/multiple node from that. It will extract whatever data you want

     

    It should work. If you want it to be dynamic you have to do something different from string operations. For fixed length you can use String Extract option and get the data by providing before and after.

     

    image

    Ashwin A.K
    Navigator | Tier 3
    August 24, 2022

    Hi @Mitte Sab​ ,

     

    I agree with @Prankur Joshi​ .

     

    This is DOM object, so using String Operations is not the right way to go about achieving it.

    Sure, you could use the String: Extract Text and provide the Before and After strings so as to locate the item you are interested in, but I'd recommend using the XML actions here.

     

    Let us know if it works out for you.

     

    Kind Regards,

    Ashwin A.K

    Blogs at TheCodingTheory - https://www.thecodingtheory.com
    M 5041Author
    Cadet | Tier 2
    August 24, 2022

    Only using ​string operation to extract data and stores in individual variables