Link to home
Start Free TrialLog in
Avatar of Victor  Charles
Victor CharlesFlag for United States of America

asked on

Help with renaming and deleting tables in an xml file using VB.NET

Hi,

How do you rename a table and also delete a particular table? Foe example if I have

<Root>
 -<fields xmlns:xfdf="http://ns.adobe.com/xfdf-transition/">
<IemA>
<IemB>
</fields>
-<fNSC>
<IemA>
</NSC>
</Root>

How do I obtain

<Root>
 -<fiels>
<IemA>
<IemB>
</fields>
</Root>
Avatar of Fernando Soto
Fernando Soto
Flag of United States of America image

Hi Victor;

The XML structure given under the title "How do I obtain" is invalid. For example <fiels> has no end tag and </fields> has no begin tag. Also <IemA> and <IemB> have no end tag or did you mean to have this <IemA /> and <IemB />. Also are all these nodes to have no data associated with them?

<Root>
  <fiels>
    <IemA>
    <IemB>
  </fields>
</Root>

Open in new window

Avatar of Victor  Charles

ASKER

Hi Fernando,

I will send you another example shortly
Yes, the data elements will contain data.
Thsnks
Victor
From:

<Root>
  -<fields xmlns:xfdf="http://ns.adobe.com/xfdf-transition/">
 <IemA>xxxx</ItemA>
 <IemB>yyyy</ItemB>
 </fields>
 -<NSC>
 <IemA>ggggg</ItemA>
 </NSC>
 </Root>

 How do I obtain

<Root>
  <fields>
 <IemA>xxxx</ItemA>
 <IemB>yyyy</ItemB>
 </fields>
 </Root>

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Fernando Soto
Fernando Soto
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you, I will try it later and get back to you.

Victor
Thank You.
Not a problem Victor, glad to help.