I have the following text in xml file:
<Config Builder="LP Wizard">
<Libraries>
<Library Name="XCAMSource"/>
</Libraries>
<InputFormats>
<XCAM Format="XCAM" LibraryDirectory="C:\XCAM"/>
</InputFormats>
<OutputFormats>
<Pads Version="PADS 5.0" ExportAscii="false" LibraryGenerate="true" ExtendedLayers="false" AlphaLoc="PART TYPE" Format="PADS" LibraryDirectory="c:\XCAM\OUTPUT" DirectoryStructure="false" Units="Millimeters" NewCodeVersion="false" usrLayerNameElecT="1" usrLayerNameElecB="2" usrLayerNameSilk="26" usrLayerNameSilkb="29" usrLayerNameCY="20" usrLayerName3D="25" usrLayerNameAssy="27" usrLayerNameAssyb="30" usrLayerNamePmask="23" usrLayerNameSmask="21" usrLayerNameSmaskb="28" DirectImport="false"/>
</OutputFormats>
</Config>
I need to change the text "C:\XCAM" that sits under LibraryDirectory=
.
What is the smart way to do so, I just dont want to string search for LibraryDirectory=
and then search for first and last " and then to change the text betweenthem.