How to extract a node (with its children) of XML and add it to a new XML document
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I managed to find the node (Actuator) I want in the original (Station_3) xml document, now I want to copy or import this Actuator node (with its children) to the new (Station_Actuators) xml document for further manipulations.
0 Kommentare
Antworten (1)
Adithya Addanki
am 15 Jan. 2016
Bearbeitet: Adithya Addanki
am 15 Jan. 2016
Hi Mus'ab,
In my understanding you were able to retrieve the Actuator node along with its children. If yes, you can make use of the xmlwrite function to create a new XML file. Please refer to the link below:
If you are looking for ways to retrieve the node along with its children you may have to use methods defined by the World Wide Web consortium. For instance, getElementsByTagName, getFirstChild, getNextSibling etc.
Please find the links below to help you get started:
Thank you, Adithya
0 Kommentare
Siehe auch
Kategorien
Mehr zu Standard File Formats finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!