Jump to content

BrandNewTester

Members
  • Posts

    14
  • Joined

  • Last visited

BrandNewTester's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hi MKISH Thanks for replay.... I could work on that.But failed to get the values..... my xml file have repeated fields...
  2. Hi all.. I m traying to read contents from the xml file. xml file tags are repeated.. I have pasted my xml file below.. plz any one help me... aaa.xml <?xml version="1.0" encoding="utf-8" ?> - <node xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.alpan.com/nodes/ws/"> <id>###################################</id> <hasLogs>true</hasLogs> - <hints> <objectStorageId xmlns="http://schemas.alpan.com/utility/ws/">0</objectStorageId> - <hints> - <hint> <First xmlns="http://schemas.alpan.com/utility/ws/">Isdirected</First> <Second xmlns="http://schemas.alpan.com/utility/ws/">True</Second> </hint> - <hint> <First xmlns="http://schemas.alpan.com/utility/ws/">CanBeMonitored</First> <Second xmlns="http://schemas.alpan.com/utility/ws/">True</Second> </hint> - <hint> <First xmlns="http://schemas.alpan.com/utility/ws/">MachineSmbiosId</First> <Second xmlns="http://schemas.alpan.com/utility/ws/">##################</Second> </hint> - <hint> <First xmlns="http://schemas.alpan.com/utility/ws/">MachineAddress</First> <Second xmlns="http://schemas.alpan.com/utility/ws/">###################</Second> </hint> - <hint> <First xmlns="http://schemas.alpan.com/utility/ws/">MachineType</First> <Second xmlns="http://schemas.alpan.com/utility/ws/">#################</Second> </hint> - <hint> <First xmlns="http://schemas.alpan.com/utility/ws/">MachineVersionMajor</First> <Second xmlns="http://schemas.alpan.com/utility/ws/">############</Second> </hint> - <hint> <First xmlns="http://schemas.alpan.com/utility/ws/">MachineOSEdition</First> <Second xmlns="http://schemas.alpan.com/utility/ws/">###################</Second> </hint> - <hint> <First xmlns="http://schemas.alpan.com/utility/ws/">SiteId</First> <Second xmlns="http://schemas.alpan.com/utility/ws/">#######################</Second> </hint> - <hint> <First xmlns="http://schemas.alpan.com/utility/ws/">Credential</First> <Second xmlns="http://schemas.alpan.com/utility/ws/">#########################</Second> </hint> </hints> </hints> <detailsName>sles9</detailsName> <detailsType>alpan.RemoteInventory.Sdk.Api.Schemas.Machines.Contained.VMwareESXVirtualMachine</detailsType> <detailsUrl>IInventoryRepo.Servic</detailsUrl> - <imageResource> <id xmlns="http://schemas.alpan.com/resources/ws/">#################</id> </imageResource> <existence>aaaaaaaaaa</existence> </node> In this xml file,I required values like... MachineSmbiosId MachineType MachineAddress MachineMajorVersion MachineOsEdition How to get these values.. please any one help me ......... thanks in advance......... BNT
  3. Hi all.. I m traying to use some api in autoit to getting some info.. how to do that.. plz help me thanks in advance BNT
  4. I m not getting from the tutorial.. plz any one help me... thanks.. BNT
  5. Hi alll.... I m new to Autoit. i want to read data from file. i pasted my file here and explain the problem also.. test.txt 123.234.567; uname1;password1 878.534.524; uname2;password2 809.787.973;uname3;passwd3 this way number of lines,here i need first line first value like 123.234.567 after that second value uname1 and third value password1.. same way for second line,third line etc... how to read that field by field content... please any one help me to do this... thanks in advance.........
  6. M23, In my old post have some info, i want to delete that. plz help me..
  7. Hi all... I want to change my older post...can i delete it and repost again.. plz help.. thanks in advance....
  8. Hi all.......... i m new to autoit..... I need to compare two text file, and write data to the another file.. here i pasting my two text file.... and problems... plz help me to do this task... Thanks in advance.......... <file contents removed at OP's request> i need to compare first file value is there in second file or not ..... how to do this....., plz any one help me.... thanks to all in advance.....
  9. Hi all I m new to Autoit .. I want to get the second column values to compare with some other values.. How to do that one.. plz help me to do this one.. thanks in advance....
  10. hey i got the answer by using upper bound.. but i have facing one more problem.. i just want 0th value...i gave 0 for both upper and lower bound..it writes all the value..it takes as default... if i give 0 for lower and 1 for upper bound it displays 0th and 1st index value i just want 0th value..
  11. Hi all, I m new to autoit...m using __FileWriteFromArray function for writing some value to file. what i m doing here is, i just read value to one variable that containes five values. i only need third value,i dt need other values... plz help me to do this... thanks in advance..... this is my sample script.. Local $filesys = StringRegExp($sXML, '<q1:fileSystem>(.*?)</q1:fileSystem>', 3) Local $hfilesys = FileOpen($sFile,1) FileWrite($hfilesys,"FILESYSTEM : ") ;_ArrayDisplay($address) _FileWriteFromArray($hfilesys, $filesys, 0) here it writes five values to file.. i just want 3rd value..i don't want 0th,1st, 2nd and 4th value.. plz help me..
  12. Hi all I m new to auoit,here i m posting the xml file from which i need to get values..please help how to do it in Autoit. </runtimeParameters> <relatedVCMachineId>00000000-0000-0000-0000-000000000000</relatedVCMachineId> <manufacturer>VMware, Inc.</manufacturer> <model>VMware Virtual Platform</model> <smbiosUUID>5769437hh4h8yeth8yuhh8u8598598hh</smbiosUUID> <serialNumber>VMware-hkjghkhg hh 5875 898 </serialNumber> <bootLoader>Unknown</bootLoader> - <oS xmlns:q1="http://schemas/operatingsystems/ws/" xsi:type="q1:LinuxOS"> <q1:type>SuSELinux</q1:type> <q1:edition>Enterprise Server</q1:edition> <q1:hostName>soss11sp1-32bit</q1:hostName> <q1:memberOf>com</q1:memberOf> <q1:member>Domain</q1:member> this is my sample xml file.. thanks in advance.
×
×
  • Create New...