Click here to Skip to main content
15,886,518 members
Articles / Programming Languages / XML

XMLLib for PUGXML with XPath

Rate me:
Please Sign up or sign in to vote.
4.33/5 (11 votes)
29 Oct 2009CPOL5 min read 126K   1.2K   38  
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)


Written By
Web Developer
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions