|
|
|
Как изменить значение элемента (XML2XML with XSLT)
|
|||
|---|---|---|---|
|
#18+
Есть - <All> <Element attr1="1" attr2="2" /> - <Element attr1="3"> <SubElement attr1="4" /> - <SubElement attr1="5"> - <Content attr1="6"> <Element attr="7" /> </Content> </SubElement> </Element> - <Element attr1="8"> <SubElement attr1="9" /> </Element> <Element attr1="10" /> </All> Как можно привести его к такому виду: <All> <NewElement attr1="1" attr2="2"> <SubElement/> </NewElement> <NewElement attr1="3"> <SubElement attr1="4"/> <SubElement attr1="5"> <Content attr1="6"> <NewElement attr="7"> <SubElement/> </NewElement> </Content> </SubElement> </NewElement> Т.е. как изменить имя в ноде не трогая параметров, структуры, текста внутри нода..? И как вставить дочерний элемент в ноду? Заранее спасибо ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.12.2006, 01:54 |
|
||
|
|

start [/forum/topic.php?fid=14&msg=34219585&tid=1334536]: |
0ms |
get settings: |
12ms |
get forum list: |
17ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
401ms |
get topic data: |
11ms |
get forum data: |
3ms |
get page messages: |
39ms |
get tp. blocked users: |
1ms |
| others: | 246ms |
| total: | 738ms |

| 0 / 0 |
