이 제출물을 팔로우합니다
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다
Using XMLNode, you can read an XML document into MATLAB as an XMLNode object. This object allows you to navigate and extract data from the XML document using XPath queries.
For example, in the XML document of colors (colors.xml)
<colors>
<color>
<name>red</name>
<hex>FF0000</hex>
</color>
<color>
<name>green</name>
<hex>00FF00</hex>
</color>
<color>
<name>blue</name>
<hex>0000FF</hex>
</color>
</colors>
you could obtain the green hex node using
>> n = XMLNode('colors.xml')
>> n.colors.color(2).hex
or
>> n = XMLNode('colors.xml')
>> n('colors/color[2]/hex')
To extract traditional MATLAB arrays instead of returning XMLNode objects, use {} indexing.
>> n = XMLNode('colors.xml')
>> greenHex = n{'colors/color[2]/hex'}
Supports namespaces and various character encodings.
If you have enhancement suggestions or if you find a bug, please leave a comment :)
인용 양식
Jarrod Rivituso (2026). XMLNode (https://kr.mathworks.com/matlabcentral/fileexchange/34711-xmlnode), MATLAB Central File Exchange. 검색 날짜: .
도움
도움 준 파일: Gating-ML
| 버전 | 퍼블리시됨 | 릴리스 정보 | Action |
|---|---|---|---|
| 1.6.0.1 | Updated license |
|
|
| 1.6.0.0 | Setting the toolbox flag |
||
| 1.5.0.0 | Fixed copyright statements |
||
| 1.3.0.0 | Updates made based on user comments... - Empty array now returned when XPath expression is not found in document
|
||
| 1.0.0.0 |
