|
.removeAttribute
|
|||
---|---|---|---|
#18+
Нработает метод .removeAttribute на удаление атрибута, проверяю существование атрибута: commInfo.getAttribute указывает что существует проверяю файл, атрибут как был так и остаеться может еще прописать чегото нужно? Зарание благодарен. ... |
|||
:
Нравится:
Не нравится:
|
|||
26.03.2009, 14:39 |
|
.removeAttribute
|
|||
---|---|---|---|
#18+
TD6370может еще прописать чегото нужно?Да. Свой код. ... |
|||
:
Нравится:
Не нравится:
|
|||
26.03.2009, 23:05 |
|
.removeAttribute
|
|||
---|---|---|---|
#18+
_Vasilisk_, Public Sub DeleteInf(GStatus As String, PoleXML As String) Dim PatchXML As String PatchXML = Environ("APPDATA") & "\" & "БД.xml" Set xmldoc = New DOMDocument xmldoc.Load PatchXML Dim commInfo As IXMLDOMElement ' Поиск собирательного элемента Set fso = CreateObject("Scripting.FileSystemObject") If Not fso.FileExists(PatchXML) Then MsgBox "Не создана XML база", vbInformation, "!" Exit Sub End If Set commInfo = xmldoc.documentElement.selectSingleNode("//Body").selectSingleNode(GStatus) If TypeName(commInfo) <> "Nothing" Then xmldoc.loadXML xmldoc.xml If TypeName(commInfo.getAttribute("A" & PoleXML)) <> "Nothing" Then commInfo.removeAttribute ("A" & PoleXML) End If End If Exit Sub ... |
|||
:
Нравится:
Не нравится:
|
|||
27.03.2009, 09:49 |
|
|
start [/forum/topic.php?fid=14&gotonew=1&tid=1333606]: |
0ms |
get settings: |
10ms |
get forum list: |
14ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
35ms |
get topic data: |
10ms |
get first new msg: |
8ms |
get forum data: |
2ms |
get page messages: |
36ms |
get tp. blocked users: |
1ms |
others: | 11ms |
total: | 135ms |
0 / 0 |