cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Query builder to extract links from XML EPMdocument (DITA MAP)

DG_9924912
3-Visitor

Query builder to extract links from XML EPMdocument (DITA MAP)

We are trying to build a query that:

 

A) Use an XML DITA map (EPMdocument) as our primary file

B) From the XML DITA map file, extract all the links to other EPMdocuments

C) The EPMdocument links are found in the "topicref" elements (href attribute)

D) Get the ID, name and author for each link.

 

Sample  XML DITA map:

<bookmap>

.....

<chapter>
    <topicmeta><navtitle>Introduction &amp; General Description</navtitle></topicmeta>
    <topicref href="windcillEPMdocLink1.dita"/>
    <topicref href="windcillEPMdocLink2.dita"/>
</chapter>

...

</bookmap>

 

Result XML:

<REQS>

  <REQ id=".." link="windcillEPMdocLink1.dita"><name>...</name><author>...</author>  </REQ>

   <REQ id=".." link="windcillEPMdocLink2.dita"><name>...</name><author>...</author></REQ>

</REQS>

2 REPLIES 2

The question is: does query builder support XPATH? or some method to extract XML content?

You can certainly read a file using “Java Method” functionality in Query Builder.

 

So yes, what you want to do is possible.

Top Tags