| Forum: Project: GetInfos Topic: XML Format | Forums Index |
| Gimpneek | 1. Post | 2009-08-06 15:15:54 |
|---|---|---|
|
User-ID: 9 Colin Wren Function: Author Group: Default Posts: 9
|
Is there any way of having the API put out the values as nodes with nodevalues?
|
|
| Geekathome | 2. Post | 2009-08-06 15:16:47 |
|
User-ID: 1 Kilian Waser Function: Admin Group: Developer Posts: 104 |
@Gimpneek: HTML tags (and so XML tags too) will removed by forum posts.
|
|
| Gimpneek | 3. Post | 2009-08-06 15:19:54 |
|
User-ID: 9 Colin Wren Function: Author Group: Default Posts: 9
|
Oops,
|
|
| Geekathome | 4. Post | 2009-08-06 15:36:45 |
|
User-ID: 1 Kilian Waser Function: Admin Group: Developer Posts: 104 |
OK. I just wondering why you want to get this output? The otherone has the same information and can be read by XSL and other transformations easily. Is there a good reason to change the XML output into your proposition?
|
|
| Gimpneek | 5. Post | 2009-08-06 16:33:10 |
|
User-ID: 9 Colin Wren Function: Author Group: Default Posts: 9
|
Sorry about the Edit, it was a quick edit to show roughly what I was talking about. The reason I want the output is because when using XML in Flash it's easier to use the node value than the attributes.
|
|
| Geekathome | 6. Post | 2009-08-06 16:39:34 |
|
User-ID: 1 Kilian Waser Function: Admin Group: Developer Posts: 104 |
Change the structure is a problem, becouse all the people (sites) that are using the output, must change their translations. And more than one XML output by the same out.php doesn't make sence, in my mind. But you can create an XSL that converts the GetInfos XML output into your XML structure. Is this an acceptable solution for you? |
|
| Gimpneek | 7. Post | 2009-08-14 21:55:11 |
|
User-ID: 9 Colin Wren Function: Author Group: Default Posts: 9
|
I've never used an XSL but if there's a way that's kool |
|
| Geekathome | 8. Post | 2009-08-16 00:32:45 |
|
User-ID: 1 Kilian Waser Function: Admin Group: Developer Posts: 104 |
Here is an XSL that converts the XML output into a node only XML:
|
|
| Geekathome | 9. Post | 2009-08-20 05:05:02 |
|
User-ID: 1 Kilian Waser Function: Admin Group: Developer Posts: 104 |
Becouse of an easier XML string calculation your wishes nearly comes true ;).
|
|
| Gimpneek | 10. Post | 2009-08-22 14:16:14 |
|
User-ID: 9 Colin Wren Function: Author Group: Default Posts: 9
|
Sorry for the delay, just checked it out and it's what I wanted :)
|
|
| Gimpneek | 11. Post | 2009-08-23 18:21:16 |
|
User-ID: 9 Colin Wren Function: Author Group: Default Posts: 9
|
I'm having a slight issue with reading the xml file using PHP, there's no DTD so the file fails validation. |
|
| Geekathome | 12. Post | 2009-08-23 18:46:17 |
|
User-ID: 1 Kilian Waser Function: Admin Group: Developer Posts: 104 |
Right. It will be included in the next unstable:
|
|
| Gimpneek | 13. Post | 2009-08-23 20:38:15 |
|
User-ID: 9 Colin Wren Function: Author Group: Default Posts: 9
|
I've had a little experience with JSON.
|
|
