Hi,
I'm having trouble with something again. If i have, for example:
<Notes>
<Note>some text</Note>
<Note>some other text</Note>
<Note>more text</Note>
</Notes>
I put the InnerText of each Note node into an ArrayList. My question is, if
i change the ArrayList around by adding and deleting elements, how do i
"update" the xml file i just got the information from?
Thank you very much in advance,
Tim (newbie learner). 8 1189
Serialize?
If you are grabbing the InnerText, then I guess you are walking the DOM.
XML Serialization may make your life simpler.
For example, to read XML into an object, you can do this
MyClass instance= serializer.Deserialize(...) ;
you can then update the instance.
and to write the XML:
serializer.Serialize(instance....);
"Timothy V" <tr****@msn.com> wrote in message
news:OQ*************@tk2msftngp13.phx.gbl... Hi, I'm having trouble with something again. If i have, for example:
<Notes> <Note>some text</Note> <Note>some other text</Note> <Note>more text</Note> </Notes>
I put the InnerText of each Note node into an ArrayList. My question is,
if i change the ArrayList around by adding and deleting elements, how do i "update" the xml file i just got the information from?
Thank you very much in advance,
Tim (newbie learner).
Serialize?
If you are grabbing the InnerText, then I guess you are walking the DOM.
XML Serialization may make your life simpler.
For example, to read XML into an object, you can do this
MyClass instance= serializer.Deserialize(...) ;
you can then update the instance.
and to write the XML:
serializer.Serialize(instance....);
"Timothy V" <tr****@msn.com> wrote in message
news:OQ*************@tk2msftngp13.phx.gbl... Hi, I'm having trouble with something again. If i have, for example:
<Notes> <Note>some text</Note> <Note>some other text</Note> <Note>more text</Note> </Notes>
I put the InnerText of each Note node into an ArrayList. My question is,
if i change the ArrayList around by adding and deleting elements, how do i "update" the xml file i just got the information from?
Thank you very much in advance,
Tim (newbie learner).
Is there anywhere i can find more information on this?
Thank you.
"Dino Chiesa [Microsoft]" <di****@online.microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... Serialize?
If you are grabbing the InnerText, then I guess you are walking the DOM. XML Serialization may make your life simpler.
For example, to read XML into an object, you can do this
MyClass instance= serializer.Deserialize(...) ;
you can then update the instance. and to write the XML:
serializer.Serialize(instance....);
"Timothy V" <tr****@msn.com> wrote in message news:OQ*************@tk2msftngp13.phx.gbl... Hi, I'm having trouble with something again. If i have, for example:
<Notes> <Note>some text</Note> <Note>some other text</Note> <Note>more text</Note> </Notes>
I put the InnerText of each Note node into an ArrayList. My question is, if i change the ArrayList around by adding and deleting elements, how do i "update" the xml file i just got the information from?
Thank you very much in advance,
Tim (newbie learner).
Is there anywhere i can find more information on this?
Thank you.
"Dino Chiesa [Microsoft]" <di****@online.microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... Serialize?
If you are grabbing the InnerText, then I guess you are walking the DOM. XML Serialization may make your life simpler.
For example, to read XML into an object, you can do this
MyClass instance= serializer.Deserialize(...) ;
you can then update the instance. and to write the XML:
serializer.Serialize(instance....);
"Timothy V" <tr****@msn.com> wrote in message news:OQ*************@tk2msftngp13.phx.gbl... Hi, I'm having trouble with something again. If i have, for example:
<Notes> <Note>some text</Note> <Note>some other text</Note> <Note>more text</Note> </Notes>
I put the InnerText of each Note node into an ArrayList. My question is, if i change the ArrayList around by adding and deleting elements, how do i "update" the xml file i just got the information from?
Thank you very much in advance,
Tim (newbie learner).
try this http://www.topxml.com/xmlserializer/default.asp
"Timothy V" <tr****@msn.com> wrote in message
news:uU**************@TK2MSFTNGP09.phx.gbl... Is there anywhere i can find more information on this?
Thank you.
"Dino Chiesa [Microsoft]" <di****@online.microsoft.com> wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl... Serialize?
If you are grabbing the InnerText, then I guess you are walking the DOM. XML Serialization may make your life simpler.
For example, to read XML into an object, you can do this
MyClass instance= serializer.Deserialize(...) ;
you can then update the instance. and to write the XML:
serializer.Serialize(instance....);
"Timothy V" <tr****@msn.com> wrote in message news:OQ*************@tk2msftngp13.phx.gbl... Hi, I'm having trouble with something again. If i have, for example:
<Notes> <Note>some text</Note> <Note>some other text</Note> <Note>more text</Note> </Notes>
I put the InnerText of each Note node into an ArrayList. My question
is, if i change the ArrayList around by adding and deleting elements, how do i "update" the xml file i just got the information from?
Thank you very much in advance,
Tim (newbie learner).
try this http://www.topxml.com/xmlserializer/default.asp
"Timothy V" <tr****@msn.com> wrote in message
news:uU**************@TK2MSFTNGP09.phx.gbl... Is there anywhere i can find more information on this?
Thank you.
"Dino Chiesa [Microsoft]" <di****@online.microsoft.com> wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl... Serialize?
If you are grabbing the InnerText, then I guess you are walking the DOM. XML Serialization may make your life simpler.
For example, to read XML into an object, you can do this
MyClass instance= serializer.Deserialize(...) ;
you can then update the instance. and to write the XML:
serializer.Serialize(instance....);
"Timothy V" <tr****@msn.com> wrote in message news:OQ*************@tk2msftngp13.phx.gbl... Hi, I'm having trouble with something again. If i have, for example:
<Notes> <Note>some text</Note> <Note>some other text</Note> <Note>more text</Note> </Notes>
I put the InnerText of each Note node into an ArrayList. My question
is, if i change the ArrayList around by adding and deleting elements, how do i "update" the xml file i just got the information from?
Thank you very much in advance,
Tim (newbie learner).
Hi, i have another question. What if i wanted to use an XmlReader and not an
XmlDocument. How would i Deserialize() a node? (ie. Deserialize the node
Note from my previous post)
Thank you.
"Dino Chiesa [Microsoft]" <di****@online.microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... Serialize?
If you are grabbing the InnerText, then I guess you are walking the DOM. XML Serialization may make your life simpler.
For example, to read XML into an object, you can do this
MyClass instance= serializer.Deserialize(...) ;
you can then update the instance. and to write the XML:
serializer.Serialize(instance....);
"Timothy V" <tr****@msn.com> wrote in message news:OQ*************@tk2msftngp13.phx.gbl... Hi, I'm having trouble with something again. If i have, for example:
<Notes> <Note>some text</Note> <Note>some other text</Note> <Note>more text</Note> </Notes>
I put the InnerText of each Note node into an ArrayList. My question is, if i change the ArrayList around by adding and deleting elements, how do i "update" the xml file i just got the information from?
Thank you very much in advance,
Tim (newbie learner).
Hi, i have another question. What if i wanted to use an XmlReader and not an
XmlDocument. How would i Deserialize() a node? (ie. Deserialize the node
Note from my previous post)
Thank you.
"Dino Chiesa [Microsoft]" <di****@online.microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... Serialize?
If you are grabbing the InnerText, then I guess you are walking the DOM. XML Serialization may make your life simpler.
For example, to read XML into an object, you can do this
MyClass instance= serializer.Deserialize(...) ;
you can then update the instance. and to write the XML:
serializer.Serialize(instance....);
"Timothy V" <tr****@msn.com> wrote in message news:OQ*************@tk2msftngp13.phx.gbl... Hi, I'm having trouble with something again. If i have, for example:
<Notes> <Note>some text</Note> <Note>some other text</Note> <Note>more text</Note> </Notes>
I put the InnerText of each Note node into an ArrayList. My question is, if i change the ArrayList around by adding and deleting elements, how do i "update" the xml file i just got the information from?
Thank you very much in advance,
Tim (newbie learner).
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Dave H |
last post by:
Hello,
I have a query regarding definition lists. Is it good practice
semantically to use the dt and dd elements to mark up questions and
answers in a frequently asked questions list, or FAQ?
...
|
by: Odd-R. |
last post by:
I have to lists, A and B, that may, or may not be equal. If they are not
identical, I want the output to be three new lists, X,Y and Z where X has
all the elements that are in A, but not in B, and...
|
by: s_subbarayan |
last post by:
Dear all,
1)In one of our implementation for an application we are supposed to
collate two linked lists.The actual problem is like this:
There are two singularly linked lists, the final output...
|
by: Simon Forman |
last post by:
I've got a function that I'd like to improve.
It takes a list of lists and a "target" element, and it returns the set
of the items in the lists that appear either before or after the target...
|
by: Gal Diskin |
last post by:
Hi,
I am writing a code that needs to iterate over 3 lists at the same
time, i.e something like this:
for x1 in l1:
for x2 in l2:
for x3 in l3:
print "do something with", x1, x2, x3
What I...
|
by: Michael M. |
last post by:
How to find the longst element list of lists?
I think, there should be an easier way then this:
s1 =
s2 =
s3 =
if len(s1) >= len(s2) and len(s1) >= len(s3):
sx1=s1 ## s1 ist längster
|
by: Joerg Schoen |
last post by:
Hi folks!
Everyone knows how to sort arrays (e. g. quicksort, heapsort etc.)
For linked lists, mergesort is the typical choice.
While I was looking for a optimized implementation of mergesort...
|
by: Joeyeti |
last post by:
Hi fellow VB knowers (I am but a learner still).
I have a question for you which I struggle with. I need to convert nested Lists in MS WORD (whether numbered or bulleted or mixed) from their...
|
by: =?Utf-8?B?QWRhbSBN?= |
last post by:
Hi all,
What is the syntax for a method that accepts a list of generic lists?
For example, I have a List that contains the following lists:
List<Car>
List<Boat>
List<Plane>
|
by: Qbert16 |
last post by:
Hi, I'm quite new to python and am looking for help with lists inside lists
This is an example I'm trying to do. I have the following thesaurus set...
thesaurus = ,
...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |