Re: Merging XML Documents XmlTextReader against XmlDocument

From: Oleg Tkachenko [MVP] (oleg_at_NO!SPAM!PLEASEtkachenko.com)
Date: 06/20/04

  • Next message: lyndon hughey: "Re: Test for a nodes existance???"
    Date: Sun, 20 Jun 2004 10:22:47 +0200
    
    

    decrypted wrote:

    > I wrote some code to save layout of forms in my application to an XML File.
    > One of the forms has a control which can emit its own layout in the form of
    > XML....so for this controls, I obviously just want to dump the configuration
    > from the Control right into a sub node of the control node....crude example
    > <Form>
    > <Controls>
    > <Control Name="MyControl1">
    > <--- insert controls xml output here.
    > </Control>
    > </Controls>
    > </Form>
    >
    > So....what I did was wrote the output to an XmlTextWriter with a
    > StringWriter base....then loaded an XmlTextReader with the StringWiter's
    > StringBuilder.ToString();

    So why don't you write that xml data at the first step - along with
    writing to XmlTextWriter?

    -- 
    Oleg Tkachenko [XML MVP]
    http://blog.tkachenko.com
    

  • Next message: lyndon hughey: "Re: Test for a nodes existance???"

    Relevant Pages

    • Re: Dream GUI toolkit (Was: GUI programming.)
      ... > Limits aren't unique to custom authored layout code. ... the window gets bigger--I want their distances kept. ... Nothing less than total control will do! ... Sizable windows exist for a reason, and if no such reason exists? ...
      (comp.programming)
    • DCC problem or Sods Law strikes again (long)
      ... After months of work I finally got my loft layout to a stage where I felt I could invite a couple of friends over to test out the currently laid track before moving on to scenery or other parts of the layout. ... Before they arrived I double checked that every part of the track work, especially the recently laid temporary 'branch' and the 2 Lenz point control LS150's which control the Tortoise switch machines, worked. ... The LS150's use the main buss bar wiring to receive their control signals but switch the Tortoise power from a separate transformer. ...
      (rec.models.railroad)
    • Re: Dream GUI toolkit (Was: GUI programming.)
      ... > the designer or programmer thought he was being 'artistic'. ... > designer control over how the buttons are arranged. ... Similar, in my mind, to a drum track or synth arpeggio. ... Certainly drum tracks and auto layout are faster and ...
      (comp.programming)
    • Re: 59 deluxe...project
      ... Would it seem that this is normal, do I need to go back through the input, and control sections again? ... This time they started the second team, that didn't help the first team motivation, then the first team had to dig them out of a 2 touchdown hole. ... The QB is a 6th grade who can throw accurately to about 30 yards, and my I practice my kid to adjust 3 to 5 yards and he has only missed one catch all year. ... I being ne who never does anything the easy, and usually the right way, just used Hoffman Amp's layout as a reference tool. ...
      (alt.guitar.amps)
    • Re: 59 deluxe...project
      ... Would it seem that this is normal, do I need to go back through the input, and control sections again? ... This time they started the second team, that didn't help the first team motivation, then the first team had to dig them out of a 2 touchdown hole. ... The QB is a 6th grade who can throw accurately to about 30 yards, and my I practice my kid to adjust 3 to 5 yards and he has only missed one catch all year. ... I being ne who never does anything the easy, and usually the right way, just used Hoffman Amp's layout as a reference tool. ...
      (alt.guitar.amps)