This is a multi-part message in MIME format.

------=_NextPart_000_000A_01C7EA67.3955E4D0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello everyone,

Can anybody help me with a script, that read XML , i want read the NAME =
en Value from this xml.


This is a example

- <Policies CustomOnly=3D"0">
- <Policy SoftwareID=3D"EPOAGENT3000">
<Setting Section=3D"VersionControl" Name=3D"Version" Value=3D"Tue, 28 =
Aug 2007 14:19:34 UTC" />=20
<Setting Section=3D"UpdateOptions" Name=3D"bAllowDATDowngrade" =
Value=3D"0" />=20
<Setting Section=3D"UpdateOptions" Name=3D"szLogFileName" Value=3D"" =
/>=20
<Setting Section=3D"UpdateOptions" Name=3D"szRunAfterUpdateEXE" =
Value=3D"" />=20
<Setting Section=3D"UpdateOptions" Name=3D"bRunIfUpdateSuccess" =
Value=3D"1" />=20
<Setting Section=3D"SiteList" Name=3D"uiNumberOfSites" Value=3D"0" />=20


Thanks





Rob
------=_NextPart_000_000A_01C7EA67.3955E4D0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.3059" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Hello everyone,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Can anybody help me with a script, that =
read XML ,=20
i want read the NAME en Value from this xml.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>This is a example</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>
<DIV class=3Dc style=3D"MARGIN-LEFT: 1em; TEXT-INDENT: -2em"><A =
class=3Db onfocus=3Dh()=20
onclick=3D"return false"=20
href=3D"file:///I:/Policiechecker/cgingiepoagent.xml#"><STRONG><FONT=20
face=3D"Courier New" color=3D#ff0000>-</FONT></STRONG></A> <SPAN =
class=3Dm><FONT=20
color=3D#0000ff>&lt;</FONT></SPAN><FONT color=3D#990000><SPAN=20
class=3Dt>Policies</SPAN><SPAN class=3Dt> CustomOnly</SPAN></FONT><SPAN=20
class=3Dm><FONT color=3D#0000ff>=3D"</FONT></SPAN><B>0</B><FONT =
color=3D#0000ff><SPAN=20
class=3Dm>"</SPAN><SPAN class=3Dm>&gt;</SPAN></FONT></DIV>
<DIV>
<DIV class=3De>
<DIV class=3Dc style=3D"MARGIN-LEFT: 1em; TEXT-INDENT: -2em"><A =
class=3Db onfocus=3Dh()=20
onclick=3D"return false"=20
href=3D"file:///I:/Policiechecker/cgingiepoagent.xml#"><STRONG><FONT=20
face=3D"Courier New" color=3D#ff0000>-</FONT></STRONG></A> <SPAN =
class=3Dm><FONT=20
color=3D#0000ff>&lt;</FONT></SPAN><FONT color=3D#990000><SPAN=20
class=3Dt>Policy</SPAN><SPAN class=3Dt> SoftwareID</SPAN></FONT><SPAN =
class=3Dm><FONT=20
color=3D#0000ff>=3D"</FONT></SPAN><B>EPOAGENT3000</B><FONT =
color=3D#0000ff><SPAN=20
class=3Dm>"</SPAN><SPAN class=3Dm>&gt;</SPAN></FONT></DIV>
<DIV>
<DIV class=3De>
<DIV style=3D"MARGIN-LEFT: 1em; TEXT-INDENT: -2em"><SPAN =
class=3Db><STRONG><FONT=20
face=3D"Courier New" color=3D#ff0000>&nbsp;</FONT></STRONG></SPAN> <SPAN =

class=3Dm><FONT color=3D#0000ff>&lt;</FONT></SPAN><SPAN class=3Dt><FONT=20
color=3D#990000>Setting</FONT></SPAN> <SPAN class=3Dt><FONT=20
color=3D#990000>Section</FONT></SPAN><SPAN class=3Dm><FONT=20
color=3D#0000ff>=3D"</FONT></SPAN><B>VersionControl</B><SPAN =
class=3Dm><FONT=20
color=3D#0000ff>"</FONT></SPAN><SPAN class=3Dt><FONT color=3D#990000>=20
Name</FONT></SPAN><SPAN class=3Dm><FONT=20
color=3D#0000ff>=3D"</FONT></SPAN><B>Version</B><SPAN class=3Dm><FONT=20
color=3D#0000ff>"</FONT></SPAN><SPAN class=3Dt><FONT color=3D#990000>=20
Value</FONT></SPAN><SPAN class=3Dm><FONT =
color=3D#0000ff>=3D"</FONT></SPAN><B>Tue, 28=20
Aug 2007 14:19:34 UTC</B><FONT color=3D#0000ff><SPAN =
class=3Dm>"</SPAN><SPAN=20
class=3Dm> /&gt;</SPAN></FONT> </DIV></DIV>
<DIV class=3De>
<DIV style=3D"MARGIN-LEFT: 1em; TEXT-INDENT: -2em"><SPAN =
class=3Db><STRONG><FONT=20
face=3D"Courier New" color=3D#ff0000>&nbsp;</FONT></STRONG></SPAN> <SPAN =

class=3Dm><FONT color=3D#0000ff>&lt;</FONT></SPAN><SPAN class=3Dt><FONT=20
color=3D#990000>Setting</FONT></SPAN> <SPAN class=3Dt><FONT=20
color=3D#990000>Section</FONT></SPAN><SPAN class=3Dm><FONT=20
color=3D#0000ff>=3D"</FONT></SPAN><B>UpdateOptions</B><SPAN =
class=3Dm><FONT=20
color=3D#0000ff>"</FONT></SPAN><SPAN class=3Dt><FONT color=3D#990000>=20
Name</FONT></SPAN><SPAN class=3Dm><FONT=20
color=3D#0000ff>=3D"</FONT></SPAN><B>bAllowDATDowngrade</B><SPAN =
class=3Dm><FONT=20
color=3D#0000ff>"</FONT></SPAN><SPAN class=3Dt><FONT color=3D#990000>=20
Value</FONT></SPAN><SPAN class=3Dm><FONT=20
color=3D#0000ff>=3D"</FONT></SPAN><B>0</B><FONT color=3D#0000ff><SPAN=20
class=3Dm>"</SPAN><SPAN class=3Dm> /&gt;</SPAN></FONT> </DIV></DIV>
<DIV class=3De>
<DIV style=3D"MARGIN-LEFT: 1em; TEXT-INDENT: -2em"><SPAN =
class=3Db><STRONG><FONT=20
face=3D"Courier New" color=3D#ff0000>&nbsp;</FONT></STRONG></SPAN> <SPAN =

class=3Dm><FONT color=3D#0000ff>&lt;</FONT></SPAN><SPAN class=3Dt><FONT=20
color=3D#990000>Setting</FONT></SPAN> <SPAN class=3Dt><FONT=20
color=3D#990000>Section</FONT></SPAN><SPAN class=3Dm><FONT=20
color=3D#0000ff>=3D"</FONT></SPAN><B>UpdateOptions</B><SPAN =
class=3Dm><FONT=20
color=3D#0000ff>"</FONT></SPAN><SPAN class=3Dt><FONT color=3D#990000>=20
Name</FONT></SPAN><SPAN class=3Dm><FONT=20
color=3D#0000ff>=3D"</FONT></SPAN><B>szLogFileName</B><SPAN =
class=3Dm><FONT=20
color=3D#0000ff>"</FONT></SPAN><SPAN class=3Dt><FONT color=3D#990000>=20
Value</FONT></SPAN><FONT color=3D#0000ff><SPAN =
class=3Dm>=3D"</SPAN><B></B><SPAN=20
class=3Dm>"</SPAN><SPAN class=3Dm> /&gt;</SPAN></FONT> </DIV></DIV>
<DIV class=3De>
<DIV style=3D"MARGIN-LEFT: 1em; TEXT-INDENT: -2em"><SPAN =
class=3Db><STRONG><FONT=20
face=3D"Courier New" color=3D#ff0000>&nbsp;</FONT></STRONG></SPAN> <SPAN =

class=3Dm><FONT color=3D#0000ff>&lt;</FONT></SPAN><SPAN class=3Dt><FONT=20
color=3D#990000>Setting</FONT></SPAN> <SPAN class=3Dt><FONT=20
color=3D#990000>Section</FONT></SPAN><SPAN class=3Dm><FONT=20
color=3D#0000ff>=3D"</FONT></SPAN><B>UpdateOptions</B><SPAN =
class=3Dm><FONT=20
color=3D#0000ff>"</FONT></SPAN><SPAN class=3Dt><FONT color=3D#990000>=20
Name</FONT></SPAN><SPAN class=3Dm><FONT=20
color=3D#0000ff>=3D"</FONT></SPAN><B>szRunAfterUpdateEXE</B><SPAN =
class=3Dm><FONT=20
color=3D#0000ff>"</FONT></SPAN><SPAN class=3Dt><FONT color=3D#990000>=20
Value</FONT></SPAN><FONT color=3D#0000ff><SPAN =
class=3Dm>=3D"</SPAN><B></B><SPAN=20
class=3Dm>"</SPAN><SPAN class=3Dm> /&gt;</SPAN></FONT> </DIV></DIV>
<DIV class=3De>
<DIV style=3D"MARGIN-LEFT: 1em; TEXT-INDENT: -2em"><SPAN =
class=3Db><STRONG><FONT=20
face=3D"Courier New" color=3D#ff0000>&nbsp;</FONT></STRONG></SPAN> <SPAN =

class=3Dm><FONT color=3D#0000ff>&lt;</FONT></SPAN><SPAN class=3Dt><FONT=20
color=3D#990000>Setting</FONT></SPAN> <SPAN class=3Dt><FONT=20
color=3D#990000>Section</FONT></SPAN><SPAN class=3Dm><FONT=20
color=3D#0000ff>=3D"</FONT></SPAN><B>UpdateOptions</B><SPAN =
class=3Dm><FONT=20
color=3D#0000ff>"</FONT></SPAN><SPAN class=3Dt><FONT color=3D#990000>=20
Name</FONT></SPAN><SPAN class=3Dm><FONT=20
color=3D#0000ff>=3D"</FONT></SPAN><B>bRunIfUpdateSuccess</B><SPAN =
class=3Dm><FONT=20
color=3D#0000ff>"</FONT></SPAN><SPAN class=3Dt><FONT color=3D#990000>=20
Value</FONT></SPAN><SPAN class=3Dm><FONT =
color=3D#0000ff>=3D"1</FONT></SPAN><FONT=20
color=3D#0000ff><SPAN class=3Dm>"</SPAN><SPAN class=3Dm> =
/&gt;</SPAN></FONT>=20
</DIV></DIV>
<DIV class=3De>
<DIV style=3D"MARGIN-LEFT: 1em; TEXT-INDENT: -2em"><SPAN =
class=3Db><STRONG><FONT=20
face=3D"Courier New" color=3D#ff0000>&nbsp;</FONT></STRONG></SPAN> <SPAN =

class=3Dm><FONT color=3D#0000ff>&lt;</FONT></SPAN><SPAN class=3Dt><FONT=20
color=3D#990000>Setting</FONT></SPAN> <SPAN class=3Dt><FONT=20
color=3D#990000>Section</FONT></SPAN><SPAN class=3Dm><FONT=20
color=3D#0000ff>=3D"</FONT></SPAN><B>SiteList</B><SPAN class=3Dm><FONT=20
color=3D#0000ff>"</FONT></SPAN><SPAN class=3Dt><FONT color=3D#990000>=20
Name</FONT></SPAN><SPAN class=3Dm><FONT=20
color=3D#0000ff>=3D"</FONT></SPAN><B>uiNumberOfSites</B><SPAN =
class=3Dm><FONT=20
color=3D#0000ff>"</FONT></SPAN><SPAN class=3Dt><FONT color=3D#990000>=20
Value</FONT></SPAN><SPAN class=3Dm><FONT=20
color=3D#0000ff>=3D"</FONT></SPAN><B>0</B><FONT color=3D#0000ff><SPAN=20
class=3Dm>"</SPAN><SPAN class=3Dm> /&gt;</SPAN></FONT> </DIV>
<DIV style=3D"MARGIN-LEFT: 1em; TEXT-INDENT: -2em"><FONT=20
color=3D#0000ff></FONT>&nbsp;</DIV>
<DIV style=3D"MARGIN-LEFT: 1em; TEXT-INDENT: -2em"><FONT=20
color=3D#0000ff></FONT>&nbsp;</DIV>
<DIV style=3D"MARGIN-LEFT: 1em; TEXT-INDENT: -2em"><FONT=20
color=3D#0000ff>Thanks</FONT></DIV>
<DIV style=3D"MARGIN-LEFT: 1em; TEXT-INDENT: -2em"><FONT=20
color=3D#0000ff></FONT>&nbsp;</DIV>
<DIV style=3D"MARGIN-LEFT: 1em; TEXT-INDENT: -2em"><FONT=20
color=3D#0000ff></FONT>&nbsp;</DIV>
<DIV style=3D"MARGIN-LEFT: 1em; TEXT-INDENT: -2em"><FONT=20
color=3D#0000ff></FONT>&nbsp;</DIV>
<DIV style=3D"MARGIN-LEFT: 1em; TEXT-INDENT: -2em"><FONT=20
color=3D#0000ff></FONT>&nbsp;</DIV>
<DIV style=3D"MARGIN-LEFT: 1em; TEXT-INDENT: -2em"><FONT=20
color=3D#0000ff></FONT>&nbsp;</DIV>
<DIV style=3D"MARGIN-LEFT: 1em; TEXT-INDENT: -2em"><FONT =
color=3D#0000ff>Rob=20
</FONT></DIV></DIV></DIV></DIV></DIV></DIV></BODY></HTML>

------=_NextPart_000_000A_01C7EA67.3955E4D0--

Re: How can i read a XML by mr_unreliable

mr_unreliable
Wed Aug 29 15:36:29 CDT 2007

hi Rva,

Microsoft has provided a scriptable object for opening and reading
xml files: "MSXML2.DOMDocument".

This object is thoroughly documented on msdn. And further, there
are numerous code samples on this very ng. You can use "google
advanced group search" to find them:

http://groups.google.com/advanced_group_search

And what you want to is very straight-forward.

cheers, jw
____________________________________________________________

You got questions? WE GOT ANSWERS!!! ..(but,
no guarantee the answers will be applicable to the questions)


Rva wrote:
> Hello everyone,
>
> Can anybody help me with a script, that read XML , i want read the NAME en Value from this xml.
>
>
> This is a example
>
> - <Policies CustomOnly="0">
> - <Policy SoftwareID="EPOAGENT3000">
> <Setting Section="VersionControl" Name="Version" Value="Tue, 28 Aug 2007 14:19:34 UTC" />
> <Setting Section="UpdateOptions" Name="bAllowDATDowngrade" Value="0" />
> <Setting Section="UpdateOptions" Name="szLogFileName" Value="" />
> <Setting Section="UpdateOptions" Name="szRunAfterUpdateEXE" Value="" />
> <Setting Section="UpdateOptions" Name="bRunIfUpdateSuccess" Value="1" />
> <Setting Section="SiteList" Name="uiNumberOfSites" Value="0" />
>
>
> Thanks
>
>
>
>
>
> Rob