I'm just wondering if it is possible to remove a node from XML with Jquery without having to replace the whole file every time? For example, if i have an xml file
<ArrivingFlights> <flight> <to>Michelle</to> <from>Brianna xx</from> <imagepath>0001.jpg</imagepath> <templateStyle>template1</templateStyle> <time>17:00</time> <date>18/12/15</date> </flight> <flight> <to>Ger</to> <from>Mammy xx</from> <imagepath>0002.jpg</imagepath> <templateStyle>template1</templateStyle> <time>08:00</time> <date>21/12/15</date> </flight> <flight> <to>Ciara</to> <from>Vikki xx</from> <imagepath>0003.jpg</imagepath> <templateStyle>template1</templateStyle> <time>11:00</time> <date>17/12/15</date> </flight> </ArrivingFlights>
Would it be possible to just remove the below so there will just be 2 nodes?
<flight> <to>Michelle</to> <from>Brianna xx</from> <imagepath>0001.jpg</imagepath> <templateStyle>template1</templateStyle> <time>17:00</time> <date>18/12/15</date> </flight>
I am thinking of doing this on a bigger scale so would like to learn ho to do it.
Thanks
No comments:
Post a Comment