Sreekanth Posted February 28, 2011 Share Posted February 28, 2011 Hya I am getting XML file parsing error with XMLDomWrapper.au3, with @EXTENDED this is error code of MSXML I am getting - "-1072896737". Can somebody help me? or suggest any other parser in autoit. using _XMLFileOpen($XMLfile,"",-1) call. Thanks in advance Sreekanth. Link to comment Share on other sites More sharing options...
ChrisL Posted February 28, 2011 Share Posted February 28, 2011 Are you able to post the file? The XMLDomWrapper works fine. Are you sure the path to the file is correct? You don't really provide much information. Local $XMLfile = "C:\MyXmlFile.xml" If NOT FileExists($XMLFile) then Exit (Msgbox(0,"",$XMLFile & " does not exist")) _XMLFileOpen($XMLfile) [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
Sreekanth Posted February 28, 2011 Author Share Posted February 28, 2011 Path is correct, I have attached the file. I couldn't open file with _XMLFileOpen call. I want to parse this file and print the values of attribute nodes "name" of element node "file3"Files.xml Link to comment Share on other sites More sharing options...
PsaltyDS Posted February 28, 2011 Share Posted February 28, 2011 This part is triggering "Invalid Unicode Character": publisher="VeriSign Class 3 Code Signing 2004 CA�" vendor="McAfee, Inc.�" start="09/13/2008 05:30�" expiry="10/10/2011 05:29�" Why are you inserting null characters with "�"? BTW, you can see debugging info by setting $debugging = True. It's an undocumented global variable declared inside _XMLDOMWrapper.au3. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Sreekanth Posted February 28, 2011 Author Share Posted February 28, 2011 This file is input to my script which is generated by an application, this is not under my control. Is there any way to handle this with XMLDomWrapper? BTW, Thanks for the info on debugging Link to comment Share on other sites More sharing options...
PsaltyDS Posted February 28, 2011 Share Posted February 28, 2011 No, but since you don't need those nulls in your results, you could just remove them with string manipulation before loading: $sXmlData = StringReplace(FileRead($sXmlFile), "�", "") $iRET = _XMLLoadXML($sXmlData) Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now