ayozzhero
Well-known member
Let's say this is the XML file:
I know how to read XML file. But how to change the <DefaultFont> value, for example from Arial to Times New Roman? And howto change the <Brand Name="Epson"> to <Brand Name="HP">?
I have another problem with XML, but I will do it in another thread later.
Thank you for helping.
VB.NET:<?xml version="[color=DimGray]1.0[/color]" encoding="[color=DimGray]UTF-8[/color]"?> <SoftwareSetting> <Layout> <DefaultFont>[color=RoyalBlue]Arial[/color]<DefaulfFont> <DefaultFontSize>[color=RoyalBlue]12[/color]<DefaultFontSize> </Layout> <Printer> <Brand Name="[color=DimGray]Canon[/color]"> <DefaultOrientation>[color=RoyalBlue]0[/color]<DefaultOrientation> </Brand> <Brand Name="[color=DimGray]Epson[/color]"> <DefaultOrientation>[color=RoyalBlue]0[/color]<DefaultOrientation> </Brand> </Printer> </SoftwareSetting>
I know how to read XML file. But how to change the <DefaultFont> value, for example from Arial to Times New Roman? And howto change the <Brand Name="Epson"> to <Brand Name="HP">?
I have another problem with XML, but I will do it in another thread later.
Thank you for helping.