Trace:
Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
jvx:common:util:xml [2020/06/15 12:18] cduncan Edited for English grammar (capitalization, punctuation, correct verb conjugation) |
jvx:common:util:xml [2020/06/29 14:52] (current) cduncan Edited for English grammar (capitalization, punctuation, correct verb conjugation) |
||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ~~Title: Use XmlWorker and XmlNode~~ | ~~Title: Use XmlWorker and XmlNode~~ | ||
| - | If you work with xml files, it's not too easy to use the right parser because there are many of them and, if you want a simple parser without writing a lot of source code, you need some luck. | + | If you work with XML files, it's not too easy to use the right parser because there are many of them and, if you want a simple parser without writing a lot of source code, you need some luck. |
| We added two classes to JVx that solves simple XML handling. | We added two classes to JVx that solves simple XML handling. | ||
| Line 75: | Line 75: | ||
| </file> | </file> | ||
| - | Read/Insert/Set tags | + | Read/Insert/Set tags: |
| <file java> | <file java> | ||
| Line 121: | Line 121: | ||
| </file> | </file> | ||
| - | It's easy to access and modify information in an XML file. We use '/' as spearator for navigate through the hierarchy and **(n)** to access tags from a list of tags. | + | It's easy to access and modify information in an XML file. We use '/' as separator for navigating through the hierarchy and **(n)** to access tags from a list of tags. |
| There are more useful methods, e.g., find the index of a tag in a list of tags. The following example creates a XML structure in memory. | There are more useful methods, e.g., find the index of a tag in a list of tags. The following example creates a XML structure in memory. | ||
