Click here to Skip to main content
Click here to Skip to main content
 
Add your own
alternative version

XMLLib for PUGXML with XPath

, 29 Oct 2009 CPOL
A library for PugXML which implements XPath
<cathi>
    <configurations>
        <!--Provide Multiple Configurations-->

        <configuration title="Grumpy01">
            <category title="Server">
                <item key="ComputerName"  value="GRUMPY01"/>
                <item key="Configuration" value="WinNT4.0(SP3);SQL6.5(SP3);IIS4.0"/>
                <item key="Language"      value="4"/>
                <item key="Platform"      value="i386"/>
            </category>

            <category title="Database">
                <item key="DBServerName"  value="GRUMPY01"/>
                <item key="UID"           value="sa"/>
            </category>

            <category title="Product">
                <item key="ComponentPath" value="e:\Microsoft Site Server\bin"/>
                <item key="Milestone"     value="1"/>
                <item key="Version"       value="4.0"/>
            </category>

            <category title="TCM">
                <item key="ATCMDBName"       value="\\fin\spec\Plutonium\atcm_frontend.mdb"/>
                <item key="ATCMSystemDBName" value="\\fin\spec\Plutonium\system.mda"/>
                <item key="ATCMAdminAcct"    value="JCrane"/>
                <item key="Logtable"         value="logTbl_CATHI"/>
            </category>
        
        </configuration>

        <configuration title="Grumpy02">
            <category title="Server">
                <item key="ComputerName"  value="GRUMPY02"/>
                <item key="Configuration" value="WinNT4.0(SP3);SQL6.5(SP3);IIS4.0"/>
                <item key="Language"      value="6"/>
                <item key="Platform"      value="i386"/>
            </category>

            <category title="Database">
                <item key="DBServerName"  value="GRUMPY02"/>
                <item key="UID"           value="sa"/>
            </category>

            <category title="Product">
                <item key="ComponentPath" value="c:\Microsoft Site Server\bin"/>
                <item key="Milestone"     value="1"/>
                <item key="Version"       value="4.0"/>
            </category>

            <category title="TCM">
                <item key="ATCMDBName"       value="\\fin\spec\Plutonium\atcm_frontend.mdb"/>
                <item key="ATCMSystemDBName" value="\\fin\spec\Plutonium\system.mda"/>
                <item key="ATCMAdminAcct"    value="JCrane"/>
                <item key="Logtable"         value="logTbl_CATHI"/>
            </category>
        
        </configuration>
    </configurations>

    <preprocessing title="\">
        <step owner="CATHI" sequence="1" command="doit1.cmd" description="some comment" />
        <step owner="CATHI" sequence="2" command="cathi_cfg.cmd" description="set environment" />
    </preprocessing>

    <tests>
        <product id = "2" description="Plutonium">
            <area id="487" title="Authoring" owner="JCrane">
                <area id="488" title="PUP">
                    <preprocessing title="\Authoring\PUP">
                        <step owner="Jcrane" sequence="1" command="PreCommand1" description="Before test run, do this first" />
                        <step owner="Jcrane" sequence="2" command="PreCommand2" description="Before test run, do this next" />
                    </preprocessing>
    
                    <level id="1" title="BVT">
                        <step testowner="Jcrane" devowner="MarcW" sequence="1" command="PUPTest /L=0" description="PUP BVT's" />
                    </level>
                    <level id="2" title="IDW">
                        <step testowner="Jcrane" devowner="MarcW" sequence="1" command="PUPTest /L=1" description="PUP IDW's" />
                    </level>
    
                    <postprocessing title="\Authoring\PUP">
                        <step owner="Jcrane" sequence="1" command="PostCommand1" description="After test run, do this first" />
                        <step owner="Jcrane" sequence="2" command="PostCommand2" description="After test run,do this next" />
                    </postprocessing>
                </area>
    
                <area id="489" title="DTCs">
                    <preprocessing title="\Authoring\DTCs">
                        <step owner="Jcrane" sequence="1" command="PreDTCCommand1" description="Before test run, do this first" />
                        <step owner="Jcrane" sequence="2" command="PreDTCCommand2" description="Before test run, do this next" />
                    </preprocessing>
                    <area id="490" title="AdSite">
                        <level id="1" title="BVT">
                            <step testowner="Jcrane" devowner="a-Sneepad" sequence="1" command="DTCTest /L=0 AdSite" description="AdSite BVT" />
                        </level>
                        <level id="2" title="IDW">
                            <step testowner="Jcrane" devowner="a-Sneepad" sequence="1" command="DTCTest /L=1 AdSite" description="AdSite IDW" />
                        </level>
                    </area>
                    <area id = "491" title="Content">
                        <level id="1" title="BVT">
                            <step testowner="Jcrane" devowner="a-Sneepad" sequence="1" command="DTCTest /L=0 Content" description="Content BVT" />
                        </level>
                        <level id="2" title="IDW">
                            <step testowner="Jcrane" devowner="a-Sneepad" sequence="1" command="DTCTest /L=1 Content" description="Content IDW" />
                        </level>
                    </area>
                    <postprocessing title="\Authoring\DTCs">
                        <step owner="Jcrane" sequence="1" command="PostDTCCommand1" description="After test run, do this first" />
                        <step owner="Jcrane" sequence="2" command="PostDTCCommand2" description="After test run,do this next" />
                    </postprocessing>
                </area>
            </area>
        </product>
   </tests>

    <postprocessing title="\">
        <step owner="CATHI" sequence="1" command="doit2.cmd" description="some comment" />
        <step owner="CATHI" sequence="2" command="cathi_unreg.cmd" description="unregister all objects" />
    </postprocessing>
</cathi>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

JCrane2
Web Developer
United States United States
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150327.1 | Last Updated 29 Oct 2009
Article Copyright 2003 by JCrane2
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid