Home > Archive > Smartphone Developer Forum > December 2005 > Where is XMLdocument.SelectSingleNode?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Where is XMLdocument.SelectSingleNode?
|
|
| Joseph Geretz 2005-12-11, 7:22 pm |
| The XMLDocument implementation on SmartPhone doesn't include
SelectSingleNode?
I've got a very small configuration file in XML format, but what should be
an easy task is turning out to be a bit more complex. OK, I've gotten the
information out of the XML file using an XMLTextReader, but how do I write
out individual item changes? Do I need to use XMLTextWriter to write out the
entire configuration file every time one parameter changes? how do I write
out specific item changes? I've got to be missing something.
Can you point me to any sample which includes both reading and writing
individual items from and back to an XML file on the SmartPhone platform?
Thanks!
- Joseph Geretz -
| |
| Ilya Tumanov [MS] 2005-12-12, 7:20 pm |
| XML format does not allow changing or appending individual nodes, it can
only be processed in its entirety.
XMLDocument class is not changing XML nodes; it changes memory
representation of the document.
As you call Save(), it overwrites entire document from memory
representation.
Anyway, here's the replacement for SelectSingleNode:
http://groups.google.com/group/micr...c8a2e68111eaaae
Best regards,
Ilya
This posting is provided "AS IS" with no warranties, and confers no rights.
*** Want to find answers instantly? Here's how... ***
1. Go to
http://groups-beta.google.com/group...framework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
"Joseph Geretz" <jgeretz@nospam.com> wrote in message
news:e54WpKp$FHA.3136@TK2MSFTNGP15.phx.gbl...
> The XMLDocument implementation on SmartPhone doesn't include
> SelectSingleNode?
>
> I've got a very small configuration file in XML format, but what should be
> an easy task is turning out to be a bit more complex. OK, I've gotten the
> information out of the XML file using an XMLTextReader, but how do I write
> out individual item changes? Do I need to use XMLTextWriter to write out
> the entire configuration file every time one parameter changes? how do I
> write out specific item changes? I've got to be missing something.
>
> Can you point me to any sample which includes both reading and writing
> individual items from and back to an XML file on the SmartPhone platform?
>
> Thanks!
>
> - Joseph Geretz -
>
>
>
>
|
|
|
|
|