Community-Credit.com | NonProfitWays.com | SOAPitstop.com   Skin:   
      User: Not logged in 
Home
Newsletter Signup
XSLT Library
Latest XML Blogs
Featured Examples
Presentations
Featured Articles
Book Chapters
Training Courses
Events
NewsGroups
 
Discussions
Examples
Tutorials
Tools
Articles
Resources
Websites
 
Sign In
My Profile
My Articles
My Examples
My Favorites
My Resources
Add a Resource
Logout
 
About Me
My Blog
HeadGeek Articles
Talking Portfolio
Resume
Pictures
World Trip Pics

Reply: How to omit the xml delcaration

Date Posted:10/4/2009 1:43 PM
Posted by:
Nimesh Jagota
Help anyone, its been a long time since my last visit. I am using the following code to save an xml document but I dont want it to add the xml declarion ""automatically. How do I do this?

If System.IO.File.Exists(Application.StartupPath & "\Settings\connect.config") Then
Dim ConnectionStrings As XElement = XElement.Load(Application.StartupPath & "\Settings\connect.config")
Dim beforeQuery = From ele In ConnectionStrings... Select ele
Dim Value As String = Nothing
For Each ele As XElement In beforeQuery
Value = [email protected]
MsgBox(Value)
ele.Attribute("connectionString").Value = "Tempe"
Next
ConnectionStrings.Save(Application.StartupPath & "\Settings\connect.config")
End If





Fans of "The Office"
Dwight Bobbleheads are here!
  “It's me! I'm the bobblehead! Yes!”



Advertise on XMLPitstop

Advertise on XMLPitstop


EggHead Cafe
Web Servicee development
DotNetSlackers
HP Printer Ink Cartridges
premiereglobal
desktop fax
teleconference company
chicago web design
Alojamiento Web
Web Hosting
Geovision
Burberry sunglasses
Video Surveillance
VoIP Internettelefonie

4,127 Total Members
13 members(last 30 days)
3 members(last 7 days)
0 members(today)

1,948 Total Discussions
0 Posts(last 30 days)
0 Posts(last 7 days)
0 Posts(today)

47,487 Total Blog Posts
0 Blogs(last 30 days)
0 Blogs(last 7 days)
0 Blogs(today)

8,699 Newsgroup Posts
0 Posts(last 30 days)
0 Posts(last 7 days)
0 Posts(today)

14,138 Total Resources
3 Resources(last 30 days)
2 Resources(last 7 days)
0 Resources(today)


 

David Silverlight's XMLPitstop.com| 2801 Florida Ave #225|Miami, FL 33133|Ph:305-447-1139