Programmatically parse mini-TOC content

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
KonstantinA
Jr. Propeller Head
Posts: 3
Joined: Fri Oct 16, 2015 2:53 am

Programmatically parse mini-TOC content

Post by KonstantinA »

Hi folks.
Has anyone tried to programmatically parse mini-TOCs in Flare .htm output?
I have a docs_index.htm topic that contains 10+ mini-TOC elements. This is a documentation index page that lists all the topics available in help.
My objective is to parse docs_index.htm with a custom parser (Java + Jsoup lib that recursively checks 404 links).
However, docs_index.htm does not hold mini-TOCs content as plain HTML. Instead, the mini-TOCs are rendered on my browser side using JS:

Code: Select all

<ul class="nocontent menu _Skins_MenusForToc mc-component" data-mc-linked-toc="Data/Tocs/Library_Profiles__ST_Products_Integration.js">
The library I use cannot (AFAIK) simulate a real user agent to render the JS. Has anyone faced the same challenge? What was your neat solution?
Thanks!
Post Reply