Hi,
How do you parse a docx with LINQ tags to determine the:
-
List of the well-formed tags located in the docx?
This would allow us to know the required datesets for generating the report (eg when engine.buildReport(…) is called). -
List of malformed (and/or suspicious) LINQ tags within a doc?
We’d use this as an initial QA step during document creation by content editors.
I was expecting to be able to run something like:
Document doc = new Document(inDocStrm); ReportingEngine engine = new ReportingEngine(); engine.setOptions(ReportBuildOptions.ALLOW_MISSING_MEMBERS); List<Object> fauxDsObjects = Arrays.asList(); engine.buildReport(doc, fauxDsObjects.toArray()); // Interrogate document for known tags etc
I’ve been looking at the following APIs, but have been able to locate which (if any) provide information regarding LINQ tags:
- Document
- Field
- FieldCollection
- KnownTypeSet - We’ve been using this to pass in formatters.
BTW - I found an old forum post/request regarding the desire to retrieve the parsed linq nodes. Given you need to identify the nodes, simply providing the set should not be difficult.
Determining the validity of the tags is likely more difficult, but we would be able to perform some validation in addition to yours.
Any guidance would be appreciated.
Cheers,
Erik