Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Tue, 23 Jun 2009 07:20:01 -0700,    group: microsoft.public.dotnet.xml        back       


Basic query re Cloning/inserting node elements   
I am developing an application using the XML DOM and HTTP POST.  Here is an 
extract of an XML document which I wish to copy/clone and insert into the 
document when multiple share information applies. I have experimented with 
CloneNode, AppendChild but cannot get the elements inserted correctly. Pretty 
basic stuff but for the life of me I cannot see where I'm going wrong.

....................
<IssuedShareCapital>
  <NumShares>1</NumShares> 
  <Currency>GBP</Currency> 
  <ShareValue>1.00</ShareValue> 
<IssuedShares>
  <ShareClass>Ordinary</ShareClass> 
  <NumShares>1</NumShares> 
  <AggregrateNominalValue>1</AggregrateNominalValue> 
 </IssuedShares>
 </IssuedShareCapital> 
.............................-- 
H.Myers
date: Tue, 23 Jun 2009 07:20:01 -0700   author:   Howard Myers .(donotspam)

Re: Basic query re Cloning/inserting node elements   
Can you elaborate? Into what document and where do you want to insert this 
data?
And what technologies do you use? This group concentrates on .NET but you 
seem to refer to Microsoft's COM implementation.

-- 

Joe Fawcett (MVP - XML)

http://joe.fawcett.name

"Howard Myers" <hmyersco@hotmail.co.uk.(donotspam)> wrote in message 
news:EAF14177-5D7B-49FB-AFAB-40B50496D973@microsoft.com...
>I am developing an application using the XML DOM and HTTP POST.  Here is an
> extract of an XML document which I wish to copy/clone and insert into the
> document when multiple share information applies. I have experimented with
> CloneNode, AppendChild but cannot get the elements inserted correctly. 
> Pretty
> basic stuff but for the life of me I cannot see where I'm going wrong.
>
> ....................
> <IssuedShareCapital>
>  <NumShares>1</NumShares>
>  <Currency>GBP</Currency>
>  <ShareValue>1.00</ShareValue>
> <IssuedShares>
>  <ShareClass>Ordinary</ShareClass>
>  <NumShares>1</NumShares>
>  <AggregrateNominalValue>1</AggregrateNominalValue>
> </IssuedShares>
> </IssuedShareCapital>
> .............................-- 
> H.Myers
date: Wed, 24 Jun 2009 09:39:31 +0100   author:   Joe Fawcett am

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us