Quantcast
Channel: PTC Community: Message List
Viewing all articles
Browse latest Browse all 11712

Re: ACL - Find All Instances of a Tag in an XML file

$
0
0

If you want an ASCII file like the following:

 

FIGURE ID=abc

TITLE=Figure Title 1

BOARDNO=moonrove.tif

FIGURE ID=def

TITLE=Figure Title 2

BOARDNO=satellite.tif

 

created from input such as this:

 

<figure id="abc">

<title>Figure Title 1</caption>

<graphic boardno="moonrove.tif">

</figure>

...

<figure id="def">

<title>Figure Title 2</caption>

<graphic boardno="satellite.tif">

</figure>

 

you can use the attached FOSI to format the document, which will create a file named doc.exp. If the top tag in the document is not <doc>, make the change in the FOSI and re-compile it, then re-format the document. The name of the .exp file will change accordingly. If you need to change the .exp extension, there is a way to do that.

 

Hope this helps!


Viewing all articles
Browse latest Browse all 11712

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>