Jump to content

XML file parsing error with XMLDomWrapper.au3


Recommended Posts

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)
Link to post
Share on other sites

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 post
Share on other sites

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 post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...