|
можно ли создать node в пустом xml c помощью xpath в java?
|
|||
---|---|---|---|
#18+
можно ли создать node в пустом xml c помощью xpath в java? дайте примерчик ... |
|||
:
Нравится:
Не нравится:
|
|||
03.07.2011, 11:42 |
|
можно ли создать node в пустом xml c помощью xpath в java?
|
|||
---|---|---|---|
#18+
При помощи XPath создать ничего нельзя. Нигде. По определению. При помощи XPath можно только выбрать некоторое множество узлов ... |
|||
:
Нравится:
Не нравится:
|
|||
03.07.2011, 19:56 |
|
можно ли создать node в пустом xml c помощью xpath в java?
|
|||
---|---|---|---|
#18+
вот это реализовано в perl: http://search.cpan.org/~msergeant/XML-XPath-1.13/XPath.pm setNodeText($path, $text) Sets the text string for a particular XML node. The node can be an element or an attribute. If the node to be set is an attribute, and the attribute node does not exist, it will be created automatically. createNode($path) Creates the node matching the path given. If part of the path given, or all of the path do not exist, the necessary nodes will be created automatically. ... |
|||
:
Нравится:
Не нравится:
|
|||
03.07.2011, 21:41 |
|
|
start [/forum/topic.php?fid=14&msg=37334196&tid=1332919]: |
0ms |
get settings: |
9ms |
get forum list: |
13ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
76ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
44ms |
get tp. blocked users: |
2ms |
others: | 14ms |
total: | 177ms |
0 / 0 |