Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
XML
data.xmlanalysis
mappoint.webservice
msf
msxml-webrelease
netmyservices.sdk
passport.sdk
soap
soapsdk
uddi.general
uddi.programming
uddi.specification
xml
xmlsqlwebrelease
xsl
  
 
date: Tue, 20 May 2008 20:25:46 -0700 (PDT),    group: microsoft.public.xsl        back       


generate XML file as follow, using XmlDocument.   
Hello,
 I have to generate XML file as follow. Using XmlDocument.


<Company>
	< Employee EID=”111” Description=” xyz”>
	    <Dept DeptNo=”D10”>
		<FirstName> Abhijit </FirstName>
		<LastName> Babar </LastName>
	   </Dept>
	   <Dept DeptNo=”D20”>
		<FirstName> Sahine </FirstName>
		<LastName> Ghavane </LastName>
	   </Dept>
	</Employee>

	< Employee EID=”222” Description=” abc”>
	    <Dept DeptNo=”D10”>
		<FirstName> Swapnil </FirstName>
		<LastName> Chavan </LastName>
	   </Dept>
	</Employee>
</Company>


I have to add Dept node at runtime and not fix number, Dept node added
will be between 1 to 10.  Sometimes I will add 2 Dept  nodes;
sometimes I will add 10 Dept nodes. New node will append at the end
position.
Also I have to search Employee node from its EID, and Delete
particular node from EID.
Also all Dept node  will be display when we select Particular EID from
Employee Node

How can I do this. Please give me hint. Thanks
date: Tue, 20 May 2008 20:25:46 -0700 (PDT)   author:   Abhijit D. Babar

Re: generate XML file as follow, using XmlDocument.   
"Abhijit D. Babar"  wrote in message 
news:12095371-9d3d-47b1-94cb-7129fd4ad1c0@w4g2000prd.googlegroups.com...
Hello,
 I have to generate XML file as follow. Using XmlDocument.


<Company>
< Employee EID=”111” Description=” xyz”>
    <Dept DeptNo=”D10”>
<FirstName> Abhijit </FirstName>
<LastName> Babar </LastName>
   </Dept>
   <Dept DeptNo=”D20”>
<FirstName> Sahine </FirstName>
<LastName> Ghavane </LastName>
   </Dept>
</Employee>

< Employee EID=”222” Description=” abc”>
    <Dept DeptNo=”D10”>
<FirstName> Swapnil </FirstName>
<LastName> Chavan </LastName>
   </Dept>
</Employee>

It depends on the size of the file but unless it is very large compared to 
the machine's available RAM then open using XmlDocument and use InsertAfter 
or AppendChild: 
http://msdn.microsoft.com/en-us/library/system.xml.xmlnode.insertafter.aspx

-- 

Joe Fawcett (MVP - XML)

http://joe.fawcett.name

</Company>


I have to add Dept node at runtime and not fix number, Dept node added
will be between 1 to 10.  Sometimes I will add 2 Dept  nodes;
sometimes I will add 10 Dept nodes. New node will append at the end
position.
Also I have to search Employee node from its EID, and Delete
particular node from EID.
Also all Dept node  will be display when we select Particular EID from
Employee Node

How can I do this. Please give me hint. Thanks
date: Wed, 21 May 2008 08:21:40 +0100   author:   Joe Fawcett am

Google
 
Web ureader.com


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