Please provide me with a method to check on the command line whether a given DCR is a valid xml fileIt may be a combination of different clts that would help me arrive at the conclusion..Basically i need to include this within a perl subroutine to check whether a given dcr is valid.VERY URGENT.. PLEASE HELP!!
If you just want to check if the DCR is an xml or not you can use XML DOM parser to open the xml file, if it throws error it is not an valid xml.Capture that error message to know the cause of failure.
my $parser = new XML:: DOM:arser;my $doc = $parser->parsefile($DCR_File_Name)if(!defined($doc)){print(the xml is not well formed);}
Hi,You can use the below ipl to check whether the DCT is valid or notiwdctverifier.ipl -i /AbsolutePath/datacapture.cfg1. To run this ipl you must be logged on to the Teamsite server2. You should provide the absolute path of the DCT like for Windows from Y:\default\main\....\datacapture.cfg for Unix /iwmnt/default/main/..../datacapture.cfgif there is no error in the DCT then no message will be thrown by the ipl otherwise it will throw the possible error.Thanks,Rajesh