Jump to content

fjorger

Members
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

fjorger's Achievements

Seeker

Seeker (1/7)

1

Reputation

  1. Hi again, Thank you very much for the function example, but because I'm loading data from an existing xml file (_XML_Load) then I'm just changing some data (ComputerName) and dumping the data to the same file. So I would only need the following (first line only): Func example() Const $XML_DATA = _ '<?xml version="1.0" encoding="UTF-8"?>' & @CRLF Then I would had to strip the existing (first line). But no worries, I will just force (version 3). Thanks again for your time and help (appreciated)
  2. Hi TheXman, Apologies for the late reply. Thanks for the investigation, you nailed it. The mystery is now solved
  3. Hi TheXman, Thanks for pointing that out (very silly mistake)😞 @mLipok: My sincere apologies 🤕 (and thanks for your valued work👍). About the " and ' to be represented by &quot; and &apos; while using WSIM, well I discovered that works regardless (using both formats), so no problem whatsoever. So now I'm just curious about the missing ( "CRLF" at the first entry.) when using "6" instead of "3", could this be a "glitch" in the parsing code, or work as intended? Best Regards, FJorgeR.
  4. Hi TheXman, I'm having a strange issue while using "_XML_CreateDOMDocument","_XML_Load" "_XML_SaveToFile" . While opening Windows SIM "unattend.xml" files using your "XML.au3" UDF (By the way great work by picking up "eltorro" code and adding extra features) I'm having some issues: Using "_XML_CreateDOMDocument" and setting up as "Default" (in my case it ends up being "6") I get the following output (upon Load and SaveToFile😞 <?xml version="1.0" encoding="utf-8"?><unattend xmlns="urn:schemas-microsoft-com:unattend"> Thus missing a "CRLF" at the first entry. I have to change the parameter to "3" to get the proper result (equal to the original file): Like this: <?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> I Just wanted to know if this is normal and related to "__XML_MiscProperty_DomVersion" function, or not. Because I can keep the "3" to produce the same result. And in fact this is only a glitch (they are both valid to the best of my knowledge) . Nonetheless I do have another more serious issue. Apparently Microsoft is creating special XML's when using WSIM for "SynchronousCommand wcm:action" : For their own parsing code they require the both " and ' to be represented by &quot; and &apos; , just to differentiate from their own XML code. <SynchronousCommand wcm:action="add"> <Order>1</Order> <Description>Never Expires</Description> <CommandLine>cmd /C WMIC USERACCOUNT WHERE &quot;Name=&apos;TESTUSER&apos;&quot; SET PasswordExpires=FALSE</CommandLine> <RequiresUserInput>false</RequiresUserInput> </SynchronousCommand> Unfortunately while using the functions "_XML_Load" and then "_XML_SaveToFile" all data containing ([&quot;] and [&apos;]) get back to (" and '), resulting in: <SynchronousCommand wcm:action="add"> <Order>1</Order> <Description>Never Expires</Description> <CommandLine>cmd /C WMIC USERACCOUNT WHERE "Name='TESTUSER'" SET PasswordExpires=FALSE</CommandLine> <RequiresUserInput>false</RequiresUserInput> </SynchronousCommand> I know this is "kind" of normal, but is there any way to avoid this? I mean keeping the original Raw data? Thanks in advance, Regards.
×
×
  • Create New...