|
|
|
Добавить атрибут в узел XML-ки
|
|||
|---|---|---|---|
|
#18+
Есть XML приблизительного вида: <bom> <item> <number>1</number> <quote>3</quote> </item> <item> <number>2</number> <quote>32</quote> </item> <item> <number>3</number> <quote>123</quote> </item> </bom> То есть, узлы item - одинакового имени. Для корректного распихивания по таблицам мне необходимо привести ее к виду: <bom> <item id="1"> <number>1</number> <quote>3</quote> </item> <item id="2"> <number>2</number> <quote>32</quote> </item> <item id = "3"> <number>3</number> <quote>123</quote> </item> </bom> То есть, к узлу item добавить атрибут id. Никак не получается. Делаю так: Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. Вылетает на строке aElement.Attributes.setNamedItem att ПАМАГИТЕ!!! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 13.04.2009, 19:00 |
|
||
|
|

start [/forum/topic.php?fid=60&msg=35928898&tid=2161133]: |
0ms |
get settings: |
11ms |
get forum list: |
14ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
74ms |
get topic data: |
11ms |
get forum data: |
3ms |
get page messages: |
32ms |
get tp. blocked users: |
2ms |
| others: | 235ms |
| total: | 388ms |

| 0 / 0 |
