Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7743335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:30:26+00:00 2026-06-01T09:30:26+00:00

This is the xml I got as an output from the WriteXmlString() of Infragistics

  • 0

This is the xml I got as an output from the WriteXmlString() of Infragistics ultrawebtree. I am using this to create another Infragistics ultrawebtree with the same structure. But here I don’t want the <Url>something.aspx..</Url>. I want that to be like this <Url><\Url>. So how I can able to remove. This I get as a String. So I used Regex.Replace(). But it will work for certain conditions,but for some case it will destruct the xml by deleting some xml tags and xml became not valid due to missing of tags.
I used this expression <Url>\S*</Url> to avoid the contents of Url. Any help will be very helpful. Thanks in advance.

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
- <InfragisticsServerTree XmlVersion="1.0">
  - <uwtModule>
    - <ProjectProperties>
      <ComponentTarget>ClassicTree</ComponentTarget>
      <BrowserTarget>Auto</BrowserTarget>
    </ProjectProperties>
    - <TreeProperties>
      <MaxDataBindDepth>-1</MaxDataBindDepth>
      <Name>uwtModule</Name>
      <Indentation>20</Indentation>
      <SubMenuImage>igNone</SubMenuImage>
      <LoadOnDemandPrompt>
        <b>Loading...</b>
      </LoadOnDemandPrompt>
      <ExpandAnimation>Decelerate</ExpandAnimation>
      <ExpandOnClick>false</ExpandOnClick>
      <CompactRendering>false</CompactRendering>
      <RenderAnchors>false</RenderAnchors>
      - <Style>
        <ForeColor>-16777216</ForeColor>
        <BorderColor>-4144960</BorderColor>
        <BorderStyle>None</BorderStyle>
        <BorderWidth>1px</BorderWidth>
        - <Font>
          <Name>Arial</Name>
          - <Names>
            <Name>Arial</Name>
          </Names>
          <Size>11px</Size>
        </Font>
        <Height>425px</Height>
        <Width>97%</Width>
        - <Padding>
          <Top>5px</Top>
          <Left>5px</Left>
          <Right>5px</Right>
          <Bottom>5px</Bottom>
        </Padding>
      </Style>
      - <SelectedNodeStyle>
        <BackColor>-2894893</BackColor>
        <ForeColor>-16777216</ForeColor>
        - <Padding>
          <Top>2px</Top>
          <Left>2px</Left>
          <Right>2px</Right>
          <Bottom>2px</Bottom>
        </Padding>
      </SelectedNodeStyle>
    </TreeProperties>
    <Styles />
    - <Levels>
      - <Level>
        <Number>0</Number>
      </Level>
    </Levels>
- <Nodes>
  - <Node>
    <Text>123</Text>
    <Url>ModuleEdit.aspx?ModuleID=965</Url>
    <Target>main</Target>
    <Tag>965</Tag>
    <Title>AccptChangesPerfPM</Title>
    <Expanded>true</Expanded>
    - <Nodes>
      - <Node>
        <Text>111</Text>
        <Url>123.aspx?e=965 </Url>
        <Target>main</Target>
        <Tag>TL_-99999</Tag>
      </Node>
      - <Node>
        <Text>werrv</Text>
        <Url>1dfee.aspx?qwe=9er65</Url>
        <Target>main</Target>
        <Tag>12DDfe</Tag>
      </Node>
      - <Node>
        <Text>q2233</Text>
        <Target>main</Target>
        <Tag>TL_1015</Tag>
        <Title>Topic_1</Title>
        <ShowExpand>true</ShowExpand>
        - <Nodes>
          - <Node>
            <Text>T1</Text>
            <Url>w3345_954y65.aspx?ID=965er</Url>
            <Target>main</Target>
            - <Style>
              <ForeColor>-16777216</ForeColor>
            </Style>
            <Tag>82355</Tag>
            <Title>T1</Title>
          </Node>
          - <Node>
            <Text>T2</Text>
            <Url>23_7811.aspx?ID=3u65</Url>
            <Target>main</Target>
            - <Style>
              <ForeColor>-16777216</ForeColor>
            </Style>
            <Tag>82356</Tag>
            <Title>T2</Title>
          </Node>
          - <Node>
            <Text>T3</Text>
            <Url>we456_9.aspx?ID=4r56</Url>
            <Target>main</Target>
            - <Style>
              <ForeColor>-16777216</ForeColor>
            </Style>
            <Tag>82357</Tag>
            <Title>T3</Title>
          </Node>
        </Nodes>
      </Node>
    </Nodes>
  </Node>
</Nodes>
  </uwtModule>
</InfragisticsServerTree>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T09:30:28+00:00Added an answer on June 1, 2026 at 9:30 am

    My advice is ignore regular expressions.

    Go For XML class’s of VB to read it from file,
    then work with the nodelists and nodes.

    Here are some links to get you starting:

    Create XML in VB#

    Modify XML literals in VB#

    Samples of multiple actions on XML files in VB#

    [VB.NET] XML – Create and Merge Files. Edit, Add and Delete Nodes.

    In the links above you’ll find heavy documentation and samples how to open, edit, create, merge.

    Below its a how to do what you asked above.:
    But with a fair warning: This is C# you’ll need to use the above links to convert as i’m not much of a VB.Net developer

    string path = "./"; //your own path
    string name = "Tempo"; //filename
    XmlDocument f = new XmlDocument();
    f.Load(path + name + ".xml");
    XmlNodeList a = f.GetElementsByTagName("Url");
    for (int i = 0; i < a.Count; i++)
    {
        a[i].InnerText = ""  //This had the data inside <Url>...</Url>
    }
        f.Save(path+name); //Edited to add the save
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple problem with XML got from database. Now, this XML can
I've got an xml output self-generated from a cms (drupal) I need to work
i'm trying to implement paging in xml using this code and got around to
I am trying to sort an xml using xsl. Got some sample from xml.com.
I wan't to load some data from my XML file using this function: public
I've got a socket from which I'm reading XML data. However, this socket will
Let's say that I've got this xml: <items> <item name=thumb> <downloadStream>test1</downloadStream> <downloadStream>test2</downloadStream> <downloadStream>test3</downloadStream> </item>
I've got XML that looks like this: <item> <itemDate>07/10/2009</itemDate> </item> I would like to
I have got an XML document which looks something like this. <Root> <Info>....</Info> <Info>....</Info>
I've got some XML, for example purposes it looks like this: <root> <field1>test</field1> <f2>t2</f2>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.