-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
- 2 replies
- 0 views
-
Get this Ultimate Java Programming Bundle for only $29
By News Staff,
- neowin deals
- sponsored
- (and 6 more)
- 0 replies
- 269 views
-
Need help combining inputs into one output for XML (code included)
By BlakeHammerton,
- 4 answers
- 2331 views
-
- 12 answers
- 11868 views
-
- 2 answers
- 2429 views
-
Question
James Rose
Hello gang,
I am creating an xml document from data from a database. However when I write them as an attribute it gets an extra slash
The database has only "Test1"
The code is as follows:
while (drGet.Read()) { XmlElement Trend = xmlTrending.CreateElement("Trend"); Trend.SetAttribute("Ident", drGet.GetInt32(0).ToString()); Trend.SetAttribute("Info", drGet.GetString(1)); Trends.AppendChild(Trend); }Thanks
Link to comment
https://www.neowin.net/forum/topic/1219187-c-create-xml-has-extra-slash/Share on other sites
6 answers to this question
Recommended Posts