Advertisement

07.22.2008 at 04:52PM PDT, ID: 23586965
[x]
Attachment Details

XML edit tags based on attribute

Asked by Shauli in Microsoft Visual Basic.Net, Extensible HTML (XHTML), Extensible Stylesheet Language Transformation (XSLT)

Tags: , ,

VB2008

this is the xml:

<UserParams>
  <userName name="User 1" active="0">
    <Login>
      <Locations>
        <Location name="Dogwood">
          <Files>\\Dogwood\ppmp\data</Files>
          <SQLname>dogwood\DOGWOOD</SQLname>
          <DatabaseName>dbname</DatabaseName>
        </Location>
        <Location name="SUP0001 (NPI)">
          <Files>\\npi-server\ppmp\data</Files>
          <SQLname>npi-server\SQLNPI</SQLname>
          <DatabaseName>ppmp</DatabaseName>
        </Location>
        <Location name="SUP0002 (TS)">
          <Files>\\d14byhd1\ppmp\Data</Files>
          <SQLname>d14byhd1\DBTS</SQLname>
          <DatabaseName>ppmp</DatabaseName>
        </Location>
        <Location name="SUP0003 (JB)">
          <Files>\\ppmp\ppmp\data</Files>
          <SQLname>PPMP\DBJB</SQLname>
          <DatabaseName>ppmp</DatabaseName>
        </Location>
      </Locations>
      <RememberCurrent>1</RememberCurrent>
    </Login>
    <Toolbars>
      <leftLists>True</leftLists>
      <snapShot>True</snapShot>
    </Toolbars>
    <Splitters>
      <mainDistance>335</mainDistance>
      <leftDistance>320</leftDistance>
    </Splitters>
    <Options>
      <Option name="General">
      </Option>
      <Option name="Data">
      </Option>
      <Option name="Display">
        <listDefault>Items</listDefault>
        <listOnLeft>Billing Groups|Items|Vendors</listOnLeft>
        <listOpenOnly>Marketing Orders|Purchase Orders|Vendors</listOpenOnly>
      </Option>
      <Option name="Files and Printers">
      </Option>
      <Option name="Privileges and Security">
      </Option>
    </Options>
  </userName>
  <userName name="User 2" active="1">
    <Login>
      <Locations>
        <Location name="Office">
          <Files>\\Officeppmp\data</Files>
          <SQLname>office\SQLDB</SQLname>
          <DatabaseName>namedb</DatabaseName>
        </Location>
        <Location name="SUP0002 (TTS)">
          <Files>\\tts-server\ppmp\data</Files>
          <SQLname>tts-server\SQLTTS</SQLname>
          <DatabaseName>ppmpDB</DatabaseName>
        </Location>
        <Location name="SUP0002 (TS)">
          <Files>\\d14byhd1\ppmp\Data</Files>
          <SQLname>d14byhd1\DBTS</SQLname>
          <DatabaseName>ppmp</DatabaseName>
        </Location>
        <Location name="SUP0003 (JB)">
          <Files>\\ppmp\ppmp\data</Files>
          <SQLname>PPMP\DBJB</SQLname>
          <DatabaseName>ppmp</DatabaseName>
        </Location>
      </Locations>
      <RememberCurrent>1</RememberCurrent>
    </Login>
    <Toolbars>
      <leftLists>True</leftLists>
      <snapShot>True</snapShot>
    </Toolbars>
    <Splitters>
      <mainDistance>335</mainDistance>
      <leftDistance>320</leftDistance>
    </Splitters>
    <Options>
      <Option name="General">
      </Option>
      <Option name="Data">
      </Option>
      <Option name="Display">
        <listDefault>Items</listDefault>
        <listOnLeft>Billing Groups|Items|Vendors</listOnLeft>
        <listOpenOnly>Marketing Orders|Purchase Orders|Vendors</listOpenOnly>
      </Option>
      <Option name="Files and Printers">
      </Option>
      <Option name="Privileges and Security">
      </Option>
    </Options>
  </userName>
</UserParams>

How do I change / edit tag "listOnLeft" based on the user name?

Thanks,

S
Start Free Trial
[+][-]07.22.2008 at 05:02PM PDT, ID: 22064831

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.22.2008 at 05:07PM PDT, ID: 22064864

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.22.2008 at 05:21PM PDT, ID: 22064959

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual Basic.Net, Extensible HTML (XHTML), Extensible Stylesheet Language Transformation (XSLT)
Tags: vb 2008, any, any
Sign Up Now!
Solution Provided By: jpaulino
Participating Experts: 1
Solution Grade: A
 
 
[+][-]07.22.2008 at 05:21PM PDT, ID: 22064963

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.22.2008 at 05:37PM PDT, ID: 22065075

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.22.2008 at 05:41PM PDT, ID: 22065095

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.22.2008 at 05:47PM PDT, ID: 22065126

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628