EDN Admin
Well-known member
Im trying to use a vb script to search the below XML document and append a node if it doesnt already exist, and if it does already exist it just leaves the node as is and doesnt append a duplicate. I can get the script to append the two nodes, however
it doesnt check to see if the node exists already - Im assuming an if/else statement is all thats needed however Im unfamiliar with DOM/XML. Any assistance would be greatly appreciated...<br/>
My XML file:
<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; <?<span style="color:#A31515; xml <span style="color:Red; version<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1.0<span style="color:Black; " <span style="color:Red; encoding<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; UTF-8<span style="color:Black; " <span style="color:Blue; ?>
- <span style="color:Blue; <<span style="color:#A31515; camtasiaRelay<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; users<span style="color:Blue; >
- <user userName="
- <span style="color:Blue; <<span style="color:#A31515; presentation<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; files <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresenterName <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresenterEmail <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationTitle <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationDescription <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationStartTime <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; presentation<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; audioDevice <span style="color:Red; title<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Microphone (Intel(r) 82801AA AC97 Audio Controller)<span style="color:Black; " <span style="color:Red; mixer<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 3<span style="color:Black; " <span style="color:Red; subsource<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 0<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; preferredDesktop<span style="color:Blue; >0<span style="color:Blue; </<span style="color:#A31515; preferredDesktop<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; recordDimensions <span style="color:Red; X<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1920<span style="color:Black; " <span style="color:Red; Y<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1200<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; recordRect <span style="color:Red; left<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 0<span style="color:Black; " <span style="color:Red; top<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 0<span style="color:Black; " <span style="color:Red; right<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1920<span style="color:Black; " <span style="color:Red; bottom<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1200<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; UpdateAction<span style="color:Blue; >NoUpdate<span style="color:Blue; </<span style="color:#A31515; UpdateAction<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; ServerVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; ServerVersion<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; SequenceNumber<span style="color:Blue; >0<span style="color:Blue; </<span style="color:#A31515; SequenceNumber<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; RecordingComplete<span style="color:Blue; >true<span style="color:Blue; </<span style="color:#A31515; RecordingComplete<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; ProfileId<span style="color:Blue; >-1<span style="color:Blue; </<span style="color:#A31515; ProfileId<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; TempRecordingDir <span style="color:Blue; />
- <span style="color:Blue; <<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; testrecordingdir <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; testfiles <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; user<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; user <span style="color:Red; userName<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; user1<span style="color:Black; "<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; presentation<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; files <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresenterName<span style="color:Blue; >First User<span style="color:Blue; </<span style="color:#A31515; PresenterName<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; PresenterEmail<span style="color:Blue; >user.one@email.com<span style="color:Blue; </<span style="color:#A31515; PresenterEmail<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; PresentationTitle <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationDescription <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationStartTime <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; presentation<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; testrecordingdir <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; testfiles <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; audioDevice <span style="color:Red; title<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Microphone (Intel(r) 82801AA AC97 Audio Controller)<span style="color:Black; " <span style="color:Red; mixer<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 3<span style="color:Black; " <span style="color:Red; subsource<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 0<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; preferredDesktop<span style="color:Blue; >-1<span style="color:Blue; </<span style="color:#A31515; preferredDesktop<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; UpdateAction<span style="color:Blue; >NoUpdate<span style="color:Blue; </<span style="color:#A31515; UpdateAction<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; ServerVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; ServerVersion<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; user<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; user <span style="color:Red; userName<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; user2<span style="color:Black; "<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; presentation<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; files <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresenterName<span style="color:Blue; >Second User<span style="color:Blue; </<span style="color:#A31515; PresenterName<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; PresenterEmail<span style="color:Blue; >user.two@email.com<span style="color:Blue; </<span style="color:#A31515; PresenterEmail<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; PresentationTitle <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationDescription <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationStartTime <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; presentation<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; testrecordingdir <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; testfiles <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; audioDevice <span style="color:Red; title<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Microphone (Intel(r) 82801AA AC97 Audio Controller)<span style="color:Black; " <span style="color:Red; mixer<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 3<span style="color:Black; " <span style="color:Red; subsource<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 0<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; preferredDesktop<span style="color:Blue; >-1<span style="color:Blue; </<span style="color:#A31515; preferredDesktop<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; UpdateAction<span style="color:Blue; >NoUpdate<span style="color:Blue; </<span style="color:#A31515; UpdateAction<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; ServerVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; ServerVersion<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; user<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; user <span style="color:Red; userName<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; user3<span style="color:Black; "<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; presentation<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; files <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresenterName<span style="color:Blue; >Third User<span style="color:Blue; </<span style="color:#A31515; PresenterName<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; PresenterEmail<span style="color:Blue; >user.three@email.com<span style="color:Blue; </<span style="color:#A31515; PresenterEmail<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; PresentationTitle <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationDescription <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationStartTime <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; presentation<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; testrecordingdir <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; testfiles <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; audioDevice <span style="color:Red; title<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Microphone (Intel(r) 82801AA AC97 Audio Controller)<span style="color:Black; " <span style="color:Red; mixer<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 3<span style="color:Black; " <span style="color:Red; subsource<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 0<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; preferredDesktop<span style="color:Blue; >-1<span style="color:Blue; </<span style="color:#A31515; preferredDesktop<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; UpdateAction<span style="color:Blue; >NoUpdate<span style="color:Blue; </<span style="color:#A31515; UpdateAction<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; ServerVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; ServerVersion<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; user<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; users<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; camtasiaRelay<span style="color:Blue; >
[/code]
<br/>
What needs to be appended to each user if it doesnt already exist:
<div style="color:Black;background-color:White; <pre>
<span style="color:Green; <!--Appends this for each user just above close of the user node </user> -->
<span style="color:Blue; <<span style="color:#A31515; RecPauseHotkey <span style="color:Red; ctrl<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; shift<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; alt<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; charIndex<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 44<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; StopHotkey <span style="color:Red; ctrl<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; shift<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; alt<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; charIndex<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 45<span style="color:Black; " <span style="color:Blue; />
[/code]
<br/>
My VB Script:
<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; Set XMLDoc = CreateObject(<span style="color:#A31515; "Microsoft.XMLDOM")
XMLDoc.async = <span style="color:Blue; False
XMLDoc.load(<span style="color:#A31515; "RelayConfig.xml")
<span style="color:Green; Get the current root
<span style="color:Blue; Set nodeList = xmlDoc.getElementsByTagName(<span style="color:#A31515; "user")
<span style="color:Blue; Set parentNode = nodeList(0)
<span style="color:Green; Cycles through each "user" node
<span style="color:Blue; For <span style="color:Blue; Each parentNode <span style="color:Blue; in nodeList
<span style="color:Green; Creates the RecPauseHotkey node
<span style="color:Blue; Set NodeToAdd = xmlDoc.createElement(<span style="color:#A31515; "RecPauseHotkey")
NodeToAdd.setAttribute <span style="color:#A31515; "ctrl", <span style="color:#A31515; "false"
NodeToAdd.setAttribute <span style="color:#A31515; "shift",<span style="color:#A31515; "false"
NodeToAdd.setAttribute <span style="color:#A31515; "alt", <span style="color:#A31515; "false"
NodeToAdd.setAttribute <span style="color:#A31515; "charIndex", <span style="color:#A31515; "44"
parentNode.appendChild(NodeToAdd)
<span style="color:Blue; Set NodeToAdd = <span style="color:Blue; Nothing
<span style="color:Green; Creates the StopHotKey node
<span style="color:Blue; Set NodeToAdd = xmlDoc.createElement(<span style="color:#A31515; "StopHotkey")
NodeToAdd.setAttribute <span style="color:#A31515; "ctrl", <span style="color:#A31515; "false"
NodeToAdd.setAttribute <span style="color:#A31515; "shift",<span style="color:#A31515; "false"
NodeToAdd.setAttribute <span style="color:#A31515; "alt", <span style="color:#A31515; "false"
NodeToAdd.setAttribute <span style="color:#A31515; "charIndex", <span style="color:#A31515; "45"
parentNode.appendChild(NodeToAdd)
<span style="color:Blue; Set NodeToAdd = <span style="color:Blue; Nothing
<span style="color:Blue; Next
<span style="color:Green; Now save the nodes to the file
XMLDoc.save(<span style="color:#A31515; "RelayConfig.xml")
[/code]
<br/>
What the final xml file should look like:
<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; <?<span style="color:#A31515; xml <span style="color:Red; version<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1.0<span style="color:Black; " <span style="color:Red; encoding<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; UTF-8<span style="color:Black; " <span style="color:Blue; ?>
- <span style="color:Blue; <<span style="color:#A31515; camtasiaRelay<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; users<span style="color:Blue; >
- <user userName="
- <span style="color:Blue; <<span style="color:#A31515; presentation<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; files <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresenterName <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresenterEmail <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationTitle <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationDescription <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationStartTime <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; presentation<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; audioDevice <span style="color:Red; title<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Microphone (Intel(r) 82801AA AC97 Audio Controller)<span style="color:Black; " <span style="color:Red; mixer<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 3<span style="color:Black; " <span style="color:Red; subsource<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 0<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; preferredDesktop<span style="color:Blue; >0<span style="color:Blue; </<span style="color:#A31515; preferredDesktop<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; recordDimensions <span style="color:Red; X<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1920<span style="color:Black; " <span style="color:Red; Y<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1200<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; recordRect <span style="color:Red; left<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 0<span style="color:Black; " <span style="color:Red; top<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 0<span style="color:Black; " <span style="color:Red; right<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1920<span style="color:Black; " <span style="color:Red; bottom<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1200<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; UpdateAction<span style="color:Blue; >NoUpdate<span style="color:Blue; </<span style="color:#A31515; UpdateAction<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; ServerVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; ServerVersion<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; SequenceNumber<span style="color:Blue; >0<span style="color:Blue; </<span style="color:#A31515; SequenceNumber<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; RecordingComplete<span style="color:Blue; >true<span style="color:Blue; </<span style="color:#A31515; RecordingComplete<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; ProfileId<span style="color:Blue; >-1<span style="color:Blue; </<span style="color:#A31515; ProfileId<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; TempRecordingDir <span style="color:Blue; />
- <span style="color:Blue; <<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; testrecordingdir <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; testfiles <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; RecPauseHotkey <span style="color:Red; ctrl<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; shift<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; alt<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; charIndex<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 44<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; StopHotkey <span style="color:Red; ctrl<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; shift<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; alt<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; charIndex<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 45<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; user<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; user <span style="color:Red; userName<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; user1<span style="color:Black; "<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; presentation<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; files <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresenterName<span style="color:Blue; >First User<span style="color:Blue; </<span style="color:#A31515; PresenterName<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; PresenterEmail<span style="color:Blue; >user.one@email.com<span style="color:Blue; </<span style="color:#A31515; PresenterEmail<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; PresentationTitle <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationDescription <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationStartTime <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; presentation<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; testrecordingdir <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; testfiles <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; audioDevice <span style="color:Red; title<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Microphone (Intel(r) 82801AA AC97 Audio Controller)<span style="color:Black; " <span style="color:Red; mixer<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 3<span style="color:Black; " <span style="color:Red; subsource<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 0<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; preferredDesktop<span style="color:Blue; >-1<span style="color:Blue; </<span style="color:#A31515; preferredDesktop<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; UpdateAction<span style="color:Blue; >NoUpdate<span style="color:Blue; </<span style="color:#A31515; UpdateAction<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; ServerVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; ServerVersion<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; RecPauseHotkey <span style="color:Red; ctrl<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; shift<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; alt<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; charIndex<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 44<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; StopHotkey <span style="color:Red; ctrl<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; shift<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; alt<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; charIndex<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 45<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; user<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; user <span style="color:Red; userName<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; user2<span style="color:Black; "<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; presentation<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; files <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresenterName<span style="color:Blue; >Second User<span style="color:Blue; </<span style="color:#A31515; PresenterName<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; PresenterEmail<span style="color:Blue; >user.two@email.com<span style="color:Blue; </<span style="color:#A31515; PresenterEmail<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; PresentationTitle <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationDescription <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationStartTime <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; presentation<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; testrecordingdir <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; testfiles <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; audioDevice <span style="color:Red; title<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Microphone (Intel(r) 82801AA AC97 Audio Controller)<span style="color:Black; " <span style="color:Red; mixer<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 3<span style="color:Black; " <span style="color:Red; subsource<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 0<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; preferredDesktop<span style="color:Blue; >-1<span style="color:Blue; </<span style="color:#A31515; preferredDesktop<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; UpdateAction<span style="color:Blue; >NoUpdate<span style="color:Blue; </<span style="color:#A31515; UpdateAction<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; ServerVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; ServerVersion<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; RecPauseHotkey <span style="color:Red; ctrl<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; shift<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; alt<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; charIndex<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 44<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; StopHotkey <span style="color:Red; ctrl<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; shift<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; alt<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; charIndex<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 45<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; user<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; user <span style="color:Red; userName<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; user3<span style="color:Black; "<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; presentation<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; files <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresenterName<span style="color:Blue; >Third User<span style="color:Blue; </<span style="color:#A31515; PresenterName<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; PresenterEmail<span style="color:Blue; >user.three@email.com<span style="color:Blue; </<span style="color:#A31515; PresenterEmail<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; PresentationTitle <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationDescription <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationStartTime <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; presentation<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; testrecordingdir <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; testfiles <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; audioDevice <span style="color:Red; title<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Microphone (Intel(r) 82801AA AC97 Audio Controller)<span style="color:Black; " <span style="color:Red; mixer<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 3<span style="color:Black; " <span style="color:Red; subsource<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 0<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; preferredDesktop<span style="color:Blue; >-1<span style="color:Blue; </<span style="color:#A31515; preferredDesktop<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; UpdateAction<span style="color:Blue; >NoUpdate<span style="color:Blue; </<span style="color:#A31515; UpdateAction<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; ServerVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; ServerVersion<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; RecPauseHotkey <span style="color:Red; ctrl<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; shift<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; alt<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; charIndex<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 44<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; StopHotkey <span style="color:Red; ctrl<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; shift<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; alt<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; charIndex<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 45<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; user<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; users<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; camtasiaRelay<span style="color:Blue; >
[/code]
View the full article
it doesnt check to see if the node exists already - Im assuming an if/else statement is all thats needed however Im unfamiliar with DOM/XML. Any assistance would be greatly appreciated...<br/>
My XML file:
<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; <?<span style="color:#A31515; xml <span style="color:Red; version<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1.0<span style="color:Black; " <span style="color:Red; encoding<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; UTF-8<span style="color:Black; " <span style="color:Blue; ?>
- <span style="color:Blue; <<span style="color:#A31515; camtasiaRelay<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; users<span style="color:Blue; >
- <user userName="
- <span style="color:Blue; <<span style="color:#A31515; presentation<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; files <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresenterName <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresenterEmail <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationTitle <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationDescription <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationStartTime <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; presentation<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; audioDevice <span style="color:Red; title<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Microphone (Intel(r) 82801AA AC97 Audio Controller)<span style="color:Black; " <span style="color:Red; mixer<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 3<span style="color:Black; " <span style="color:Red; subsource<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 0<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; preferredDesktop<span style="color:Blue; >0<span style="color:Blue; </<span style="color:#A31515; preferredDesktop<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; recordDimensions <span style="color:Red; X<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1920<span style="color:Black; " <span style="color:Red; Y<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1200<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; recordRect <span style="color:Red; left<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 0<span style="color:Black; " <span style="color:Red; top<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 0<span style="color:Black; " <span style="color:Red; right<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1920<span style="color:Black; " <span style="color:Red; bottom<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1200<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; UpdateAction<span style="color:Blue; >NoUpdate<span style="color:Blue; </<span style="color:#A31515; UpdateAction<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; ServerVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; ServerVersion<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; SequenceNumber<span style="color:Blue; >0<span style="color:Blue; </<span style="color:#A31515; SequenceNumber<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; RecordingComplete<span style="color:Blue; >true<span style="color:Blue; </<span style="color:#A31515; RecordingComplete<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; ProfileId<span style="color:Blue; >-1<span style="color:Blue; </<span style="color:#A31515; ProfileId<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; TempRecordingDir <span style="color:Blue; />
- <span style="color:Blue; <<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; testrecordingdir <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; testfiles <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; user<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; user <span style="color:Red; userName<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; user1<span style="color:Black; "<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; presentation<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; files <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresenterName<span style="color:Blue; >First User<span style="color:Blue; </<span style="color:#A31515; PresenterName<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; PresenterEmail<span style="color:Blue; >user.one@email.com<span style="color:Blue; </<span style="color:#A31515; PresenterEmail<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; PresentationTitle <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationDescription <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationStartTime <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; presentation<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; testrecordingdir <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; testfiles <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; audioDevice <span style="color:Red; title<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Microphone (Intel(r) 82801AA AC97 Audio Controller)<span style="color:Black; " <span style="color:Red; mixer<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 3<span style="color:Black; " <span style="color:Red; subsource<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 0<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; preferredDesktop<span style="color:Blue; >-1<span style="color:Blue; </<span style="color:#A31515; preferredDesktop<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; UpdateAction<span style="color:Blue; >NoUpdate<span style="color:Blue; </<span style="color:#A31515; UpdateAction<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; ServerVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; ServerVersion<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; user<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; user <span style="color:Red; userName<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; user2<span style="color:Black; "<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; presentation<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; files <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresenterName<span style="color:Blue; >Second User<span style="color:Blue; </<span style="color:#A31515; PresenterName<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; PresenterEmail<span style="color:Blue; >user.two@email.com<span style="color:Blue; </<span style="color:#A31515; PresenterEmail<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; PresentationTitle <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationDescription <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationStartTime <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; presentation<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; testrecordingdir <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; testfiles <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; audioDevice <span style="color:Red; title<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Microphone (Intel(r) 82801AA AC97 Audio Controller)<span style="color:Black; " <span style="color:Red; mixer<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 3<span style="color:Black; " <span style="color:Red; subsource<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 0<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; preferredDesktop<span style="color:Blue; >-1<span style="color:Blue; </<span style="color:#A31515; preferredDesktop<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; UpdateAction<span style="color:Blue; >NoUpdate<span style="color:Blue; </<span style="color:#A31515; UpdateAction<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; ServerVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; ServerVersion<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; user<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; user <span style="color:Red; userName<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; user3<span style="color:Black; "<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; presentation<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; files <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresenterName<span style="color:Blue; >Third User<span style="color:Blue; </<span style="color:#A31515; PresenterName<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; PresenterEmail<span style="color:Blue; >user.three@email.com<span style="color:Blue; </<span style="color:#A31515; PresenterEmail<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; PresentationTitle <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationDescription <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationStartTime <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; presentation<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; testrecordingdir <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; testfiles <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; audioDevice <span style="color:Red; title<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Microphone (Intel(r) 82801AA AC97 Audio Controller)<span style="color:Black; " <span style="color:Red; mixer<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 3<span style="color:Black; " <span style="color:Red; subsource<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 0<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; preferredDesktop<span style="color:Blue; >-1<span style="color:Blue; </<span style="color:#A31515; preferredDesktop<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; UpdateAction<span style="color:Blue; >NoUpdate<span style="color:Blue; </<span style="color:#A31515; UpdateAction<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; ServerVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; ServerVersion<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; user<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; users<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; camtasiaRelay<span style="color:Blue; >
[/code]
<br/>
What needs to be appended to each user if it doesnt already exist:
<div style="color:Black;background-color:White; <pre>
<span style="color:Green; <!--Appends this for each user just above close of the user node </user> -->
<span style="color:Blue; <<span style="color:#A31515; RecPauseHotkey <span style="color:Red; ctrl<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; shift<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; alt<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; charIndex<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 44<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; StopHotkey <span style="color:Red; ctrl<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; shift<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; alt<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; charIndex<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 45<span style="color:Black; " <span style="color:Blue; />
[/code]
<br/>
My VB Script:
<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; Set XMLDoc = CreateObject(<span style="color:#A31515; "Microsoft.XMLDOM")
XMLDoc.async = <span style="color:Blue; False
XMLDoc.load(<span style="color:#A31515; "RelayConfig.xml")
<span style="color:Green; Get the current root
<span style="color:Blue; Set nodeList = xmlDoc.getElementsByTagName(<span style="color:#A31515; "user")
<span style="color:Blue; Set parentNode = nodeList(0)
<span style="color:Green; Cycles through each "user" node
<span style="color:Blue; For <span style="color:Blue; Each parentNode <span style="color:Blue; in nodeList
<span style="color:Green; Creates the RecPauseHotkey node
<span style="color:Blue; Set NodeToAdd = xmlDoc.createElement(<span style="color:#A31515; "RecPauseHotkey")
NodeToAdd.setAttribute <span style="color:#A31515; "ctrl", <span style="color:#A31515; "false"
NodeToAdd.setAttribute <span style="color:#A31515; "shift",<span style="color:#A31515; "false"
NodeToAdd.setAttribute <span style="color:#A31515; "alt", <span style="color:#A31515; "false"
NodeToAdd.setAttribute <span style="color:#A31515; "charIndex", <span style="color:#A31515; "44"
parentNode.appendChild(NodeToAdd)
<span style="color:Blue; Set NodeToAdd = <span style="color:Blue; Nothing
<span style="color:Green; Creates the StopHotKey node
<span style="color:Blue; Set NodeToAdd = xmlDoc.createElement(<span style="color:#A31515; "StopHotkey")
NodeToAdd.setAttribute <span style="color:#A31515; "ctrl", <span style="color:#A31515; "false"
NodeToAdd.setAttribute <span style="color:#A31515; "shift",<span style="color:#A31515; "false"
NodeToAdd.setAttribute <span style="color:#A31515; "alt", <span style="color:#A31515; "false"
NodeToAdd.setAttribute <span style="color:#A31515; "charIndex", <span style="color:#A31515; "45"
parentNode.appendChild(NodeToAdd)
<span style="color:Blue; Set NodeToAdd = <span style="color:Blue; Nothing
<span style="color:Blue; Next
<span style="color:Green; Now save the nodes to the file
XMLDoc.save(<span style="color:#A31515; "RelayConfig.xml")
[/code]
<br/>
What the final xml file should look like:
<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; <?<span style="color:#A31515; xml <span style="color:Red; version<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1.0<span style="color:Black; " <span style="color:Red; encoding<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; UTF-8<span style="color:Black; " <span style="color:Blue; ?>
- <span style="color:Blue; <<span style="color:#A31515; camtasiaRelay<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; users<span style="color:Blue; >
- <user userName="
- <span style="color:Blue; <<span style="color:#A31515; presentation<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; files <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresenterName <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresenterEmail <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationTitle <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationDescription <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationStartTime <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; presentation<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; audioDevice <span style="color:Red; title<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Microphone (Intel(r) 82801AA AC97 Audio Controller)<span style="color:Black; " <span style="color:Red; mixer<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 3<span style="color:Black; " <span style="color:Red; subsource<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 0<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; preferredDesktop<span style="color:Blue; >0<span style="color:Blue; </<span style="color:#A31515; preferredDesktop<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; recordDimensions <span style="color:Red; X<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1920<span style="color:Black; " <span style="color:Red; Y<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1200<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; recordRect <span style="color:Red; left<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 0<span style="color:Black; " <span style="color:Red; top<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 0<span style="color:Black; " <span style="color:Red; right<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1920<span style="color:Black; " <span style="color:Red; bottom<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 1200<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; UpdateAction<span style="color:Blue; >NoUpdate<span style="color:Blue; </<span style="color:#A31515; UpdateAction<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; ServerVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; ServerVersion<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; SequenceNumber<span style="color:Blue; >0<span style="color:Blue; </<span style="color:#A31515; SequenceNumber<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; RecordingComplete<span style="color:Blue; >true<span style="color:Blue; </<span style="color:#A31515; RecordingComplete<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; ProfileId<span style="color:Blue; >-1<span style="color:Blue; </<span style="color:#A31515; ProfileId<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; TempRecordingDir <span style="color:Blue; />
- <span style="color:Blue; <<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; testrecordingdir <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; testfiles <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; RecPauseHotkey <span style="color:Red; ctrl<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; shift<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; alt<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; charIndex<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 44<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; StopHotkey <span style="color:Red; ctrl<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; shift<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; alt<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; charIndex<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 45<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; user<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; user <span style="color:Red; userName<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; user1<span style="color:Black; "<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; presentation<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; files <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresenterName<span style="color:Blue; >First User<span style="color:Blue; </<span style="color:#A31515; PresenterName<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; PresenterEmail<span style="color:Blue; >user.one@email.com<span style="color:Blue; </<span style="color:#A31515; PresenterEmail<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; PresentationTitle <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationDescription <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationStartTime <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; presentation<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; testrecordingdir <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; testfiles <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; audioDevice <span style="color:Red; title<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Microphone (Intel(r) 82801AA AC97 Audio Controller)<span style="color:Black; " <span style="color:Red; mixer<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 3<span style="color:Black; " <span style="color:Red; subsource<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 0<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; preferredDesktop<span style="color:Blue; >-1<span style="color:Blue; </<span style="color:#A31515; preferredDesktop<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; UpdateAction<span style="color:Blue; >NoUpdate<span style="color:Blue; </<span style="color:#A31515; UpdateAction<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; ServerVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; ServerVersion<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; RecPauseHotkey <span style="color:Red; ctrl<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; shift<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; alt<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; charIndex<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 44<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; StopHotkey <span style="color:Red; ctrl<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; shift<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; alt<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; charIndex<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 45<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; user<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; user <span style="color:Red; userName<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; user2<span style="color:Black; "<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; presentation<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; files <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresenterName<span style="color:Blue; >Second User<span style="color:Blue; </<span style="color:#A31515; PresenterName<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; PresenterEmail<span style="color:Blue; >user.two@email.com<span style="color:Blue; </<span style="color:#A31515; PresenterEmail<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; PresentationTitle <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationDescription <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationStartTime <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; presentation<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; testrecordingdir <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; testfiles <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; audioDevice <span style="color:Red; title<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Microphone (Intel(r) 82801AA AC97 Audio Controller)<span style="color:Black; " <span style="color:Red; mixer<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 3<span style="color:Black; " <span style="color:Red; subsource<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 0<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; preferredDesktop<span style="color:Blue; >-1<span style="color:Blue; </<span style="color:#A31515; preferredDesktop<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; UpdateAction<span style="color:Blue; >NoUpdate<span style="color:Blue; </<span style="color:#A31515; UpdateAction<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; ServerVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; ServerVersion<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; RecPauseHotkey <span style="color:Red; ctrl<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; shift<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; alt<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; charIndex<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 44<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; StopHotkey <span style="color:Red; ctrl<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; shift<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; alt<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; charIndex<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 45<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; user<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; user <span style="color:Red; userName<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; user3<span style="color:Black; "<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; presentation<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; files <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresenterName<span style="color:Blue; >Third User<span style="color:Blue; </<span style="color:#A31515; PresenterName<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; PresenterEmail<span style="color:Blue; >user.three@email.com<span style="color:Blue; </<span style="color:#A31515; PresenterEmail<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; PresentationTitle <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationDescription <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; PresentationStartTime <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; presentation<span style="color:Blue; >
- <span style="color:Blue; <<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; testrecordingdir <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; testfiles <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; testRecording<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; audioDevice <span style="color:Red; title<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; Microphone (Intel(r) 82801AA AC97 Audio Controller)<span style="color:Black; " <span style="color:Red; mixer<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 3<span style="color:Black; " <span style="color:Red; subsource<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 0<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; preferredDesktop<span style="color:Blue; >-1<span style="color:Blue; </<span style="color:#A31515; preferredDesktop<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; UpdateAction<span style="color:Blue; >NoUpdate<span style="color:Blue; </<span style="color:#A31515; UpdateAction<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; UpdateActionVersion<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; ServerVersion<span style="color:Blue; >2.0.0<span style="color:Blue; </<span style="color:#A31515; ServerVersion<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; RecPauseHotkey <span style="color:Red; ctrl<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; shift<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; alt<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; charIndex<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 44<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; <<span style="color:#A31515; StopHotkey <span style="color:Red; ctrl<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; shift<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; alt<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; false<span style="color:Black; " <span style="color:Red; charIndex<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; 45<span style="color:Black; " <span style="color:Blue; />
<span style="color:Blue; </<span style="color:#A31515; user<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; users<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; camtasiaRelay<span style="color:Blue; >
[/code]
View the full article