I am using VB2005 Beta 2
I want to open a .xml file, test if a certain field exists, if not add the
field to each of the records in the file using a default value.
Thanks for any help,
Thomas
example:
each element looks like this at present
<Filters>
<Type>SAF</Type>
<DbLow>-50</DbLow>
<DbHigh>-24</DbHigh>
<VelLow>600</VelLow>
<VelHigh>2000 </VelHigh>
</Filters>
I want to add the bottom two to each element
<Filters>
<Type>SAF</Type>
<DbLow>-50</DbLow>
<DbHigh>-24</DbHigh>
<VelLow>600</VelLow>
<VelHigh>2000 </VelHigh>
<MinRange>0</MinRange>
<MaxRange>0</MaxRange>
</Filters>
I need to modify the schema at the top of the file also
Before:
<xs:element name="DbLow" type="xs:int" minOccurs="0" />
<xs:element name="DbHigh" type="xs:int" minOccurs="0" />
<xs:element name="VelLow" type="xs:int" minOccurs="0" />
<xs:element name="VelHigh" type="xs:int" minOccurs="0" />
After:
<xs:element name="DbLow" type="xs:int" minOccurs="0" />
<xs:element name="DbHigh" type="xs:int" minOccurs="0" />
<xs:element name="VelLow" type="xs:int" minOccurs="0" />
<xs:element name="VelHigh" type="xs:int" minOccurs="0" />
<xs:element name="MinRange" type="xs:int" minOccurs="0" />
<xs:element name="MaxRange" type="xs:int" minOccurs="0" />
--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.c om<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access