TS 6.7.1 SP1
OD 6.2
Win2k3
I am using an inline tag in a datacapture.cfg to snag some label/value pairs to populate a drop-down. I had this bright idea to create an additional DCT/DCR to house these label/value pairs that my users can populate as they needed.
I had assumed that simply reading the DCR would allow me to populate the label/value pairs as needed but ultimately I need to parse the XML file generated by Teamsite. Can anyone point me in either a Perl direction or Teamsite direction to parse label/value pairs from a DCR? I have searched these forums and can't find a snippet to handle this. I apologize in advance, I'm not a Perl guru.
I have built the Perl to go get the passed DCR and am comfortable constructing the actual output but lack the knowledge to construct the parser. I'll be more than happy to post my Perl but wanted to see if I could find anyone that has done this previously.
I've started with a parsing loop that does this:
[html]
foreach my $line(
@output_string){
# -- Ignore the ?xml or !DOCTYPE lines
if ($line !~ /xml/ && $line !~ /DOCTYPE/)
{
[/html]
Please be gentle to me as the FormsPublisher Developer's Guide falls short in giving me some examples. There's got to be a method to do this, eh?
-Dave