[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #59245] Implementation of an XML interface wit
From: |
Guillaume |
Subject: |
[Octave-bug-tracker] [bug #59245] Implementation of an XML interface without Java dependency |
Date: |
Sat, 10 Oct 2020 09:49:32 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 |
Follow-up Comment #6, bug #59245 (project octave):
readstruct/writestruct are targetting very specific types of XML files, e.g.
it starts to get ugly with this:
<a e="f"><b>c</b>d<Text>g</Text><b>3</b></a>
>> readstruct('test.xml')
ans =
struct with fields:
eAttribute: "f"
b: ["c" "3"]
Text: "d"
Text_1: "g"
xmlread/xmlwrite always felt more Java than Matlab but you can access
appropriately any content of an XML file. In the example above, you can see
that the data order is lost with "3" appearing before "g" in the struct, so
you wouldn't be able to use readstruct/writestruct if you wanted to parse an
XHTML file. I guess it would be a problem with OOXML too.
I can see why they added the new functions though as that's what many people
want (it is equivalent to the convert() method of the xmltree class I wrote a
long long time ago https://www.artefact.tk/software/matlab/xml/).
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59245>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #59245] Implementation of xmlread/xmlwrite without Java dependency, Markus Mützel, 2020/10/09
- [Octave-bug-tracker] [bug #59245] Implementation of xmlread/xmlwrite without Java dependency, Markus Mützel, 2020/10/09
- [Octave-bug-tracker] [bug #59245] Implementation of xmlread/xmlwrite without Java dependency, Guillaume, 2020/10/09
- [Octave-bug-tracker] [bug #59245] Implementation of xmlread/xmlwrite without Java dependency, Philip Nienhuis, 2020/10/09
- [Octave-bug-tracker] [bug #59245] Implementation of xmlread/xmlwrite without Java dependency, Guillaume, 2020/10/10
- [Octave-bug-tracker] [bug #59245] Implementation of an XML interface without Java dependency, Markus Mützel, 2020/10/10
- [Octave-bug-tracker] [bug #59245] Implementation of an XML interface without Java dependency,
Guillaume <=
- [Octave-bug-tracker] [bug #59245] Implementation of an XML interface without Java dependency, Markus Mützel, 2020/10/10
- [Octave-bug-tracker] [bug #59245] Implementation of an XML interface without Java dependency, Philip Nienhuis, 2020/10/10
- [Octave-bug-tracker] [bug #59245] Implementation of an XML interface without Java dependency, Markus Mützel, 2020/10/12
- [Octave-bug-tracker] [bug #59245] Implementation of an XML interface without Java dependency, Philip Nienhuis, 2020/10/12
- [Octave-bug-tracker] [bug #59245] Implementation of an XML interface without Java dependency, Philip Nienhuis, 2020/10/12
- [Octave-bug-tracker] [bug #59245] Implementation of an XML interface without Java dependency, Guillaume, 2020/10/12