please reply via email to this post to x0****@hotmail.com
i need some code that will generate code to read the xml file it is
reading
for example
input:
<book>
<bk:title>the wind</bk:title>
<bk:content
type="text">howl</bk:content>
</book>output: (xtw=xmltextwriter)
[code:1:10bb0ab988]xtw.WriteStartElement("book");
xtw.WriteStartElement("bk:title");
xtw.WriteString("the wind");
xtw.WriteEndElement();
xtw.WriteStartElement("bk:content");
xtw.WriteAttributeString("type","text");
xtw.WriteString("howl");
xtw.WriteEndElement();
xtw.WriteEndElement();[/code:1:10bb0ab988]
just solve that if you can!
seems simple?
i want to cry, i tried xmltextreader
and xmlnodereader, both would not work exactly how i wanted
i do not understand while during a
[code:1:10bb0ab988]while (xtr.read())
console.writeline(xtr.name)[/code:1:10bb0ab988]
for the input
[code:1:10bb0ab988]<book>
stuff
</book>[/code:1:10bb0ab988]
the result is
book
book <<<< WHY IS THIS HERE, CANT IT TELL ITS THE SAME
ELEMENT!!
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---