I have about thirteen configuration files that are written in XML. I need to
be able to read and cross reference these files with each other. I have
already written an xsl translator but due to the large size of the file it is
very slow. I have also been unable to access some of the relationships
contained in the document when using xsl. What would be the easiest way to
do this using visual C#? Below is a brief sample from one of the files.
<?xml version="1.0" encoding="utf-8" ?>
<vpmapp>
- <conditionObjec ts>
<vpm-cat />
<dny-exc a="false" e="" f="false" m="" name="" p="userdefine d" />
- <categorylist name="">
<aitem a="sf101" n="" />
<aitem a="sf102" n="" />
<aitem a="sf104" n="" />
</categorylist>
<ipobject name="Clnt IP Address/Subnet3" single="true" type="1" value=""
/>
<ipobject name="SourceIP1 20" single="true" type="1" value="" />
- <comb-obj d="" n-1="false" n-2="false" name="" t="1">
<c-l-1 n="SourceIP15 1" />
<c-l-1 n="SourceIP14 7" />
<c-l-1 n="SourceIP6" />
<c-l-1 n="SourceIP5" />
<c-l-1 n="SourceIP51 " />
<c-l-1 n="SourceIP50 " />
<c-l-1 n="SourceIP49 " />
<c-l-1 n="SourceIP36 " />
<c-l-1 n="SourceIP34 " />
<c-l-1 n="SourceIP33 " />
<c-l-1 n="SourceIP21 " />
<c-l-1 n="SourceIP18 6" />
<c-l-1 n="SourceIP18 7" />
<c-l-1 n="Clnt IP Address/Subnet3" />
<c-l-1 n="SourceIP12 0" />
</comb-obj>
<a-url d="" name="URL199" />
<a-url d="" name="URL198" />
<a-url d="" name="URL197" />
<a-url d="" name="URL196" />
<a-url d="" name="URL195" />
<a-url d="" name="URL194" />
<a-url d="" name="URL193" />
<a-url d="" name="URL192" />
<a-url d="" name="URL191" />
<a-url d="" name="URL190" />
<ipobject name="SourceIP9 9" single="true" type="1" value="" />
<ipobject name="SourceIP9 8" single="true" type="1" value="" />
<ipobject name="SourceIP9 7" single="true" type="1" value="" />
<ipobject name="SourceIP9 6" single="true" type="1" value="" />
<ipobject name="SourceIP9 5" single="true" type="1" value="" />
- <file-download allow-mime-types="false" name="">
<file-type-info file-extension="" mime-type=""
use-file-extension="true " use-mime-type="false" />
<file-type-info file-extension="" mime-type=""
use-file-extension="true " use-mime-type="false" />
</file-download>
<group delimiters="\!! " group-base="" group-location="" group-prefix=""
group-suffix="" name="" realm-name="" realm-type="4" restrict="" suffix=""
user="false" />
<protocol name="__PROTO_1 " subtype="all-im" t="https" />
<group delimiters="\!! " group-base="" group-location="" group-prefix=""
group-suffix="" name="USER44" realm-name="webaccess " realm-type="4"
restrict="false " suffix="false" user="true" />
<group delimiters="\!! " group-base="" group-location="" group-prefix=""
group-suffix="" name="USER45" realm-name="webaccess " realm-type="4"
restrict="false " suffix="false" user="true" />
<group delimiters="\!! " group-base="" group-location="" group-prefix=""
group-suffix="" name="GROUP2" realm-name="webaccess " realm-type="4"
restrict="false " suffix="false" user="false" />
<proxy ip-address="" name="" port="-1" />
<dny-exc a="false" e="user-defined.policy_ dend" f="false" m=""
name="LocalPoli cyDeny" p="userdefine d" />
- <user-agent-list name="">
<user-agent-item description="" name="" user-agent-regex="" />
<user-agent-item description="" name="" user-agent-regex="" />
</user-agent-list>
<adm-auth-obj f="false" name="" r-n="" />
</conditionObject s>
- <layers>
- <layer layertype="">
<name></name>
<numRows>2</numRows>
- <rowItem enabled="true" num="0">
<colItem col="0" value="1" />
<colItem col="1" name="USER14" negate="false" type="Condition " />
<colItem col="2" name="Allow Read-only Access" negate="false"
type="Condition " />
<colItem col="4" name="None" type="String" />
<colItem col="3" name="" type="String" />
</rowItem>
- <rowItem enabled="true" num="1">
<colItem col="0" value="2" />
<colItem col="1" name="USER15" negate="false" type="Condition " />
<colItem col="2" name="Allow Read-only Access" negate="false"
type="Condition " />
<colItem col="4" name="None" type="String" />
<colItem col="3" name="" type="String" />
</rowItem>
</layer>
</layers>
</vpmapp>